Go to the source code of this file.
Functions | |
CA_API UINT __stdcall | CheckPrivilege (MSIHANDLE hInstall) |
Custom action to verify whether user has a certain privilege. More... | |
CA_API UINT __stdcall CheckPrivilege | ( | MSIHANDLE | hInstall | ) |
Custom action to verify whether user has a certain privilege.
ComputerName | Local computer name, inherited from MSI properties. |
LOGON_USERNAME | Username |
LOGON_PRIVILEGE | Privilege, eg. SeServiceLogonRight |
The following code includes the UserPrivileges custom action binary and declares the CheckPrivilege custom action.
The following code checks whether a user has logon as a service privilege.
This custom action supports impersonation, see Impersonation in Immediate Custom Actions.
© Application Security Inc. - All Rights Reserved | http://msiext.codeplex.com |