Retrieves the locally unique identifier (LUID) for a privilege value in form of 64bit integer
#include <Security.au3>
_Security__LookupPrivilegeValue ( $sSystem, $sName )
$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. |
Success: | the LUID by which the privilege is known. |
Failure: | 0. |
Search LookupPrivilegeValue in MSDN Library.
#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...