Go to the source code of this file.
Functions | |
CA_API UINT __stdcall | GetUserInfo (MSIHANDLE hInstall) |
Get current user information, including SID and DNS name. More... | |
CA_API UINT __stdcall | GetUserNameFormatted (MSIHANDLE hInstall) |
Get current user name in a specific format. More... | |
CA_API UINT __stdcall | GetAccountSid (MSIHANDLE hInstall) |
Looks up the account and returns the SID. More... | |
CA_API UINT __stdcall | TranslateNameFormatted (MSIHANDLE hInstall) |
Translate an account name to a specific format. More... | |
CA_API UINT __stdcall GetAccountSid | ( | MSIHANDLE | hInstall | ) |
Looks up the account and returns the SID.
ACCOUNT_NAME | Account name to look up. Can be in DNS, FQDN or UPN format |
ACCOUNT_SID_FORMAT | format of the returned SID. This can be one of
|
CA_API UINT __stdcall GetUserInfo | ( | MSIHANDLE | hInstall | ) |
Get current user information, including SID and DNS name.
This custom action supports impersonation, see Impersonation in Immediate Custom Actions.
CA_API UINT __stdcall GetUserNameFormatted | ( | MSIHANDLE | hInstall | ) |
Get current user name in a specific format.
USERNAME_FORMAT | username format, one of EXTENDED_NAME_FORMAT, see http://msdn.microsoft.com/en-us/library/ms724268(VS.85).aspx
|
This custom action supports impersonation, see Impersonation in Immediate Custom Actions.
When trying to obtain the complete username for a user, call GetUserInfo. If you want to get the DNS username instead of the SAM username, also call GetUserNameFormatted with NameDnsDomain. The latter call will fail for a local user, ignore its return code.
CA_API UINT __stdcall TranslateNameFormatted | ( | MSIHANDLE | hInstall | ) |
Translate an account name to a specific format.
ACCOUNT_NAME | the account name to translate. This can be in any of the EXTENDED_NAME_FORMATs. |
ACCOUNT_NAME_FORMAT | name format, one of EXTENDED_NAME_FORMAT, see http://msdn.microsoft.com/en-us/library/ms724268(VS.85).aspx
|
© Application Security Inc. - All Rights Reserved | http://msiext.codeplex.com |