转换二进制 SID 为字符串
#Include <Security.au3>
_Security__SidToStringSid($pSID)
$pSID | 要转换的二进制 SID |
成功: | 返回字符串形式的 SID |
失败: | 返回空字符串 |
在MSDN中搜索
#include <Security.au3>
Local $sAccount = @UserName
Local $tSID = _Security__GetAccountSid($sAccount)
Local $sStringSID = _Security__SidToStringSid($tSID)
MsgBox(4096, "SID", "User = " & $sAccount & @CRLF & "SID = " & $sStringSID)