LookupPrivilegeValue (advapi32)
Last changed: -194.118.130.251

.
Summary
Retrieves the LUID used on a specified system to locally represent the specified privilege name

C# Signature:

[DllImport("advapi32.dll", SetLastError=true, CharSet=CharSet.Auto)]
[return: MarshalAs(UnmanagedType.Bool)]
static extern bool LookupPrivilegeValue(string lpSystemName, string lpName,
   out LUID lpLuid);

VB Signature:

Declare Function LookupPrivilegeValue Lib "advapi32.dll" (lpSystemName As String, _
   lpName As String, ByRef lpLuid As LUID) As Boolean

User-Defined Types:

LUID

Notes:

Int64 could be used instead of LUID.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Alternative Managed API:

Do you know one? Please contribute it!

Documentation