Platform SDK: Access Control |
The LookupPrivilegeName function retrieves the name corresponding to the privilege represented on a specific system by a specified locally unique identifier (LUID).
BOOL LookupPrivilegeName( LPCTSTR lpSystemName, // system name PLUID lpLuid, // locally unique identifier LPTSTR lpName, // privilege name LPDWORD cbName // displayable name );
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 LookupPrivilegeName function supports only the privileges specified in the Defined Privileges section of Winnt.h.
Windows NT/2000: Requires Windows NT 3.1 or later.
Header: Declared in Winbase.h; include Windows.h.
Library: Use Advapi32.lib.
Unicode: Implemented as Unicode and ANSI versions on Windows NT/2000.
Access Control Overview, Access Control Functions, LookupPrivilegeDisplayName, LookupPrivilegeValue