Function Reference


_Security__LookupPrivilegeValue

Show description in

Retrieves the locally unique identifier (LUID) for a privilege value in form of 64bit integer

#include <Security.au3>
_Security__LookupPrivilegeValue ( $sSystem, $sName )

Parameters

$sSystem Specifies the name of the system on which the privilege name is retrieved.
If blank, the function attempts to find the privilege name on the local system.
$sName Specifies the name of the privilege.

Return Value

Success: the LUID by which the privilege is known.
Failure: 0.

Related

_Security__SetPrivilege

See Also

Search LookupPrivilegeValue in MSDN Library.

Example

#include <Security.au3>
#include <SecurityConstants.au3>

Local $vLUID = _Security__LookupPrivilegeValue("", $SE_DEBUG_NAME)
; $vLUID represents LUID for a privilege value in form of 64bit integer. Print it out of curiosity:
ConsoleWrite("$vLUID = " & $vLUID & @CRLF)
; ... The rest of the script here...