Click or drag to resize
Xcalibur Systems LLC Logo

SecurityHelperLookupPrivilegeValue Method

The LookupPrivilegeValue function retrieves the locally unique identifier (LUID) used on a specified system to locally represent the specified privilege name.

LookupPrivilegeValue 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, BestFitMapping = false, 
	SetLastError = true)]
public static bool LookupPrivilegeValue(
	string systemName,
	string name,
	out Luid luid
)

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.
name  String
A pointer to a null-terminated string that specifies the name of the privilege, as defined in the Winnt.h header file. For example, this parameter could specify the constant, , or its corresponding string, "SeSecurityPrivilege".
luid  Luid
A pointer to a variable that receives the by which the privilege is known on the system specified by the systemName parameter.

Return Value

Boolean
See Also