BOOL LookupPrivilegeDisplayName(lpszSystemName, lpszName, lpszDisplayName, lpcchDisplayName, lpdwLanguageId) | |||
LPTSTR lpszSystemName; | |||
LPTSTR lpszName; | |||
LPTSTR lpszDisplayName; | |||
LPDWORD lpcchDisplayName; | |||
LPDWORD lpdwLanguageId; |
The LookupPrivilegeDisplayName function retrieves a displayable name representing the specified privilege.
lpszSystemName
Supplies the name of the system at which the lookup is to be performed. If the null string is provided, the local system is assumed.
lpszName
Provides the privilege's programmatic name.
lpszDisplayName
Receives the privilege's displayable name.
lpcchDisplayName
Specifies how large the buffer is (in characters). When the function returns, this parameter contains the length of the returned name, not including the null-terminator.
lpdwLanguageId
Receives the language of the returned displayable name.
The return value is TRUE if the function was successful, or FALSE if an error occurred. To obtain extended error information, use the GetLastError function.
LookupPrivilegeName