Функция _Security__LookupPrivilegeValue

 ↑  ←  Описание функции


_Security__LookupPrivilegeValue

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

Возвращаемое значение

Успех:LUID by which the privilege is known
Ошибка:Возвращает 0

См. также

_Security__SetPrivilege

См. также

Искать LookupPrivilegeValue в библиотеке MSDN

Пример

#include <SecurityConstants.au3>
#include <Security.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...