AdvApi32LookupPrivilegeValue Method

Retrieves the locally unique identifier (LUID) used on a specified system, to locally represent the specified privilege name.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("AdvApi32.dll", CharSet = CharSet.Auto, BestFitMapping = false, 
	ThrowOnUnmappableChar = true, SetLastError = true)]
public static bool LookupPrivilegeValue(
	string systemName,
	string name,
	ref Luid refLuid
)

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, SE_SECURITY_NAME, or its corresponding string, "SeSecurityPrivilege".

refLuid  Luid
A pointer to a variable that receives the LUID by which the privilege is known on the system specified by the systemName parameter.

Return Value

Boolean
If the function succeeds, the function returns .

If the function fails, it returns .

To get extended error information, call GetLastWin32Error.

Remarks

See Also