转换字符串 SID 为二进制 SID
#include <Security.au3>
_Security__StringSidToSid($sSID)
$sSID | 要转换的字符串 SID |
成功: | 返回二进制结构的 SID |
失败: | 返回 0 |
在MSDN中搜索
#include <SecurityConstants.au3>
#include <Security.au3>
Local $tSID = _Security__StringSidToSid($SID_ADMINISTRATORS)
If Not @error Then
; $tSID is structure filled with SID data for spesified string form SID
; ... The rest of the script here...
EndIf