|
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.SecurityAssembly: 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
)
<DllImportAttribute("advapi32.dll", CharSet := CharSet.Auto, BestFitMapping := false,
SetLastError := true>]
Public Shared Function LookupPrivilegeValue (
systemName As String,
name As String,
<OutAttribute> ByRef luid As Luid
) As Boolean
public:
[DllImportAttribute(L"advapi32.dll", CharSet = CharSet::Auto, BestFitMapping = false,
SetLastError = true)]
static bool LookupPrivilegeValue(
String^ systemName,
String^ name,
[OutAttribute] Luid% luid
)
[<DllImportAttribute("advapi32.dll", CharSet = CharSet.Auto, BestFitMapping = false,
SetLastError = true)>]
static member LookupPrivilegeValue :
systemName : string *
name : string *
luid : Luid byref -> bool
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
BooleanSee Also