Trying to take ownership of a Directory but it fails...
ATL / WTL / STL
1
Posts
1
Posters
3
Views
1
Watching
-
Hey Guys, My requirement is like this - I need to take ownership of some directory and delete it. I used this sample as it is but it fails to give me the ownership in the following scenario. #Case: I create a limited access user say "Limited_User". I created a directory (ownership of the directory will now be with Limited_User) and I set the all the Administrator rights as Denied. Now, from my administrator user, if I am trying to take the ownership again, the function sets its privilege but setting the ownership fails with ERROR_ACCESS_DENIED. This problem is reproducible on XP / 7. Please help me with this guys.... Thanks a lot in advance... -- Varun