LookupPrivilegeNameW(3w)

LookupPrivilegeNameW3w

Usage

BOOL LookupPrivilegeNameW
(
LPCWSTR lpSystemName,
PLUID lpLuid,
LPWSTR lpName,
LPDWORD cchName
)

Overview

Retrieves the privilege name referred to by the LUID lpLuid.

Params

lpSystemName [In] Name of the system.

lpLuid [In] Privilege value.

lpName [Out] Name of the privilege.

cchName [In/Out] Number of characters in lpName.

Returns

Success: TRUE. lpName contains the name of the privilege whose value is *lpLuid.

Failure: FALSE.

Remarks

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.

Implementation

Declared in "winbase.h".

Implemented in "dlls/advapi32/security.c".

Debug channel "advapi".

Releases

4 releases since Debian 4.0 (Etch); the text changed 3 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7

From libwine-dev 1.4.1-4 in Debian 7 (Wheezy). Parsed by carta from the page's man source.