Link to home
Start Free TrialLog in
Avatar of Shantanu
Shantanu

asked on

How to check the permissions for a registry location for a particular user

Programatically can I check the permissions (Read, Full Control) for a given user for a particular registry key location (say HKEY_CLASSES_ROOT).

My input is:
1) Registry key location (say HKEY_CLASSES_ROOT).
2) User Name

Output desired is:
Permissions (Read, Full Control)


ASKER CERTIFIED SOLUTION
Avatar of Shaka913
Shaka913

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Shantanu
Shantanu

ASKER

Till this point its fine......

llResult = GetAclInformation(llPAcl, ltypsACLInfo, Len(ltypsACLInfo), AclSizeInformation)


Now After this I don't want to set any new permissions, I just want to check the existing permissions. So how can check that the given user has Read OR Full Control permissions??.

--Shantanu
Hi Shantanu,
This old question (QID 20557275) needs to be finalized -- accept an answer, split points, or get a refund.  Please see http://www.cityofangels.com/Experts/Closing.htm for information and options.
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

-->Accept Shaka913 's comments as answer

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

GPrentice00
EE Cleanup Volunteer
Shantanu

The constants you need to check against are in the enum created.  I hope you were able to determine that.