.\" -*- nroff -*- .\" Generated file - DO NOT EDIT! .TH LookupPrivilegeNameW 3w "Oct 2012" "Wine API" "Wine API" .SH NAME \fBLookupPrivilegeNameW\fR (ADVAPI32.@) .SH SYNOPSIS BOOL LookupPrivilegeNameW ( LPCWSTR \fIlpSystemName\fR, PLUID \fIlpLuid\fR, LPWSTR \fIlpName\fR, LPDWORD \fIcchName\fR ) .SH DESCRIPTION .PP Retrieves the privilege name referred to by the \fBLUID\fR \fIlpLuid\fR. .SH PARAMS \fIlpSystemName\fR \fB[In]\fR Name of the system. .PP \fIlpLuid\fR \fB[In]\fR Privilege value. .PP \fIlpName\fR \fB[Out]\fR Name of the privilege. .PP \fIcchName\fR \fB[In/Out]\fR Number of characters in \fIlpName\fR. .PP .SH RETURNS .PP \fBSuccess:\fR \fBTRUE\fR. \fIlpName\fR contains the name of the privilege whose value is *\fIlpLuid\fR. .PP \fBFailure:\fR \fBFALSE\fR. .SH REMARKS .PP Only well-known privilege names (those defined in winnt.h) can be retrieved using this function. If the length of \fIlpName\fR is too small, on return *\fIcchName\fR will contain the number of WCHARs needed to contain the privilege, including the \fBNULL\fR terminator, and GetLastError will return \fBERROR_INSUFFICIENT_BUFFER\fR. On success, *\fIcchName\fR will contain the number of characters stored in \fIlpName\fR, \fBNOT\fR including the \fBNULL\fR terminator. .SH IMPLEMENTATION .PP Declared in \fB"winbase.h"\fR. .PP Implemented in \fB"dlls/advapi32/security.c"\fR. .PP Debug channel \fB"advapi"\fR.