BOOL LookupPrivilegeNameW ( LPCWSTR lpSystemName, PLUID lpLuid, LPWSTR lpName, LPDWORD cchName )
Retrieves the privilege name referred to by the LUID lpLuid.
|lpSystemName||[In]||Name of the system.|
|lpName||[Out]||Name of the privilege.|
|cchName||[In/Out]||Number of characters in lpName.|
Success: TRUE. lpName contains the name of the privilege whose value is *lpLuid.
Only well-known privilege names (those defined in winnt.h) can be retrieved using this function. If the length of lpName is too small, on return *cchName will contain the number of WCHARs needed to contain the privilege, including the NULL terminator, and GetLastError will return ERROR_INSUFFICIENT_BUFFER. On success, *cchName will contain the number of characters stored in lpName, NOT including the NULL terminator.
Declared in "winbase.h". https://source.winehq.org/source/include/winbase.h
Implemented in "dlls/advapi32/security.c". https://source.winehq.org/source/dlls/advapi32/security.c
Debug channel "advapi".
Copyright © 2021 The Wine Project. All trademarks are the property of their respective owners. Visit WineHQ for license details. Generated Jun 2021.