Click or drag to resize
Xcalibur Systems LLC Logo

SecurityHelperLookupPrivilegeName Method

The LookupPrivilegeName function retrieves the name that corresponds to the privilege represented on a specific system by a specified locally unique identifier ().

LookupPrivilegeName function


Namespace: Xcalibur.NativeMethods.V2.Security
Assembly: Xcalibur.NativeMethods.V2 (in Xcalibur.NativeMethods.V2.dll) Version: 1.0.1.0
Syntax
[DllImportAttribute("advapi32.dll", CharSet = CharSet.Auto, SetLastError = true)]
public static bool LookupPrivilegeName(
	string systemName,
	IntPtr luid,
	StringBuilder privilegeName,
	ref int privilegeNameSize
)

Parameters

systemName  String
A pointer to a null-terminated string that specifies the name of the system on which the privilege name is retrieved. If a null string is specified, the function attempts to find the privilege name on the local system.
luid  IntPtr
A pointer to the LUID by which the privilege is known on the target system.
privilegeName  StringBuilder
A pointer to a buffer that receives a null-terminated string that represents the privilege name. For example, this string could be "SeSecurityPrivilege".
privilegeNameSize  Int32
A pointer to a variable that specifies the size, in a TCHAR value, of the lpName buffer. When the function returns, this parameter contains the length of the privilege name, not including the terminating null character. If the buffer pointed to by the lpName parameter is too small, this variable contains the required size.

Return Value

Boolean
See Also