Get directory read/write status??
-
Hi All, I'm on Windows 2000 and am trying to get the status of a directory which has the permission to write files turned off. When you click on the properties of a directory and click on the "security" tab you can set certain permissions of that directory, such as ability to write files turned off. My question is how can I get these permissions in Visual C++? What API call do I have to do? Thanks, Philip
-
Hi All, I'm on Windows 2000 and am trying to get the status of a directory which has the permission to write files turned off. When you click on the properties of a directory and click on the "security" tab you can set certain permissions of that directory, such as ability to write files turned off. My question is how can I get these permissions in Visual C++? What API call do I have to do? Thanks, Philip
::SHAskInTheRightForum("there's a link at the top of the lounge, just next to the note begging people to stop asking programming questions here instead");
// I don't know the answer myself, but someone else will in the forum, I am sure.Christian I am completely intolerant of stupidity. Stupidity is, of course, anything that doesn't conform to my way of thinking. - Jamie Hale - 29/05/2002 Half the reason people switch away from VB is to find out what actually goes on.. and then like me they find out that they weren't quite as good as they thought - they've been nannied. - Alex, 13 June 2002
-
Hi All, I'm on Windows 2000 and am trying to get the status of a directory which has the permission to write files turned off. When you click on the properties of a directory and click on the "security" tab you can set certain permissions of that directory, such as ability to write files turned off. My question is how can I get these permissions in Visual C++? What API call do I have to do? Thanks, Philip
Look up tokens. You have to get a security token to do things like shutdown, reboot, and other things in NT and Win2K.