|
-
March 20th, 2012, 06:28 AM
#1
RegEnumKey returns ERROR_ACCESS_DENIED
Hi folks,
Can someone tell me what I need to do to enumerate the subkeys of a registry key? Is there a special privilege for this which overrides the dacl or do I need to put an entry in the dacl to allow it?
I'm currently running with SeRestorePrivilege and SeTakeOwnershipPrivilege.
xx.
Last edited by c94wjpn; March 20th, 2012 at 06:32 AM.
-
March 21st, 2012, 04:22 AM
#2
Re: RegEnumKey returns ERROR_ACCESS_DENIED
You have to RegOpenKeyEx the key which subkeys are to be enumerated with KEY_ENUMERATE_SUB_KEYS access mask.
You should use RegEnumKeyEx rather than RegEnumKey
Victor Nijegorodov
-
March 22nd, 2012, 05:17 AM
#3
Re: RegEnumKey returns ERROR_ACCESS_DENIED
Thanks for pointing this out. I am now getting the same error back from RegOpenKeyEx.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|