检索本地唯一标识符的特权(LUID)值
#include <Security.au3>
_Security__LookupPrivilegeValue($sSystem, $sName)
$sSystem | 指定检索特权名的系统名称 如果空白,函数试图查找本地系统的权限名称. |
$sName | 指定权限名称 |
成功: | 返回被称为权限 LUID |
失败: | 返回 0 |
在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...