LITTLEBLACKDOG.COM Forum Index LITTLEBLACKDOG.COM

 
LWD LWD   FAQ FAQ   Memberlist Memberlist   Usergroups Usergroups   Active Topics Active Topics   Register Register  
  Profile Profile   Log in to check your private messages Log in to check your private messages   Log in Log in  
  Who is Online Who is Online   Image Gallery Image Gallery   Chat Chat   Search Search  
  LWDGear       LBDGear  

View next topic
View previous topic
Post new topic     Reply to topic   LITTLEBLACKDOG.COM Forum Index » Code Warriors
Author Message
Lycander
Lead Dog
Lead Dog


Joined: 24 May 2002
Age: 25
Posts: 12196
Location: The Constitution State

Post Posted: Thu Jul 17, 2003 12:28 pm   Post subject: Win32 API: RemoveDirectory Reply with quote Back to top  

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
View user's profile Send private message
Display posts from previous:   
Post new topic     Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
phpBB SEO
All times are GMT - 8 Hours

Help us keep advertisements off this site. Donate today!