How can I tell...
-
If file is locked or really user have no permission to write to the file? Thanks, Brian
-
If file is locked or really user have no permission to write to the file? Thanks, Brian
Brian Shifrin wrote: really user have no permission to write to the file? thats going to take a crash course in ACL's/ACE's/SID's - I'd start with :- http://world.std.com/~jimf/papers/nt-security/nt-security.html[^] and then :- http://opensource.devx.com/cplus/Article/16711/1954?pf=true[^] That may help you ... 'G'
-
If file is locked or really user have no permission to write to the file? Thanks, Brian
but then again, maybe its simpler than that - I wonder if an attempt to open the file would produce a trappable 'no permissions error' - sorry, I cant check this right now (dont have MSDN here at the office) 'G'
-
If file is locked or really user have no permission to write to the file? Thanks, Brian
Use the _access api with which u can check for the access to the file and solve teh bug Thanx TAKE CARE
-
Use the _access api with which u can check for the access to the file and solve teh bug Thanx TAKE CARE
Sorry no go, _access calls dosmapper => EACCES when file is locked, when permission denied. as well as it will lie about write access to network shares. _access will report file/directory is writable when it isn't. Thanks, Brian