Functions | |
CA_API UINT __stdcall | CheckMembership (MSIHANDLE hInstall) |
Custom action to determine whether a specified security identifier (SID) is enabled in the impersonation token of the calling thread. More... | |
CA_API UINT __stdcall CheckMembership | ( | MSIHANDLE | hInstall | ) |
Custom action to determine whether a specified security identifier (SID) is enabled in the impersonation token of the calling thread.
SID | Sid to check. The function checks for the presence of this SID in the user and group SIDs of the impersonation token of the calling thread. |
For a list of well known SIDs on Windows, refer to http://support.microsoft.com/kb/243330
The following code includes the UserPrivileges custom action binary and declares the CheckMembership custom action.
The following code checks whether a user is a member of the Administrators local group.
This custom action supports impersonation, see Impersonation in Immediate Custom Actions.
© Application Security Inc. - All Rights Reserved | http://msiext.codeplex.com |