View Single Post
Old 29th July 2009, 11:30   #4
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
The Users group will list all users of a local machine including Administrator users. I'm assuming this is XP Professional and not XP Home?

When a user logs in it loads their registry hive to HKEY_USERS. This is what EnumUsersReg does too except of course HKEY_CURRENT_USER remains the same.

You should put in a MessageBox after the call to LookupPrivilegeValue to see what $R0 is. It should be 0 on failure.

Stu
Afrow UK is offline   Reply With Quote