Lycander
Lead Dog


Joined: 24 May 2002 Age: 25 Posts: 12196
Location: The Constitution State
|
Posted:
Thu Jul 17, 2003 12:28 pm Post subject: Win32 API: RemoveDirectory |
|
I'm trying to use the RemoveDirectory() function, part of the Win32 API. The folder was originally created by my application, but since I'm on an XP box those security features are in affect and I think that's what's stopping me from using the RemoveDirectory() function.
When I right click on the folder and go into properties, in Security there's a user item called "CREATOR OWNER" who's permissions are set to nothing, meaning none of the check boxes under Allow/Deny are set for every action (Full control, modify, read, change, etc.) And when I go to check Full Control and click Apply, it resets itself back to all uncheck boxes. My actual user that I log into this system with belongs in the Administrator group so I should be able to change stuff. I see this save behavior with every folder I try to change permissions on the user "CREATOR OWNER."
I did some reading on how to use security descriptors for file/directory services but it's really over my head and I just want to be able to delete a friggin directory that I myself have created programmatically. I have alternative designs to work around this problem but I would much rather have the data seperated into different folders. The data is in the form of custom XML files, so I could just have one big XML file with what use to be seperate XML docs become child nodes in the big XML doc. |
_________________ To the top of hunger mountain
I found my solitary ways
Where I could live on nuts and honey
And take my shelter in a cave
|
|