The LookupPrivilegeDisplayName function retrieves a displayable name representing a specified privilege.
BOOL LookupPrivilegeDisplayName(
LPCTSTR lpSystemName, // pointer to string specifying the system
LPCTSTR lpName, // pointer to string specifying the
// privilege
LPTSTR lpDisplayName, // pointer to string receiving the
// displayable name
LPDWORD cbDisplayName, // pointer to size of string for
// displayable name
LPDWORD lpLanguageId // pointer to language identifier
);
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
The LookupPrivilegeDisplayName function retrieves display names only for the privileges specified in the Defined Privileges section of WINNT.H.
Windows NT: Requires version 3.1 or later.
Windows: Unsupported.
Windows CE: Unsupported.
Header: Declared in winbase.h.
Import Library: Use advapi32.lib.
Unicode: Implemented as Unicode and ANSI versions on Windows NT.
Access Control Overview, Access Control Functions, LookupPrivilegeName, LookupPrivilegeValue