函数参考


_Security__GetLengthSid

以字节为单位返回一个有效的SID长度

#include <Security.au3>
_Security__GetLengthSid($pSID)

参数

$pSID 指向一个SID的指针

返回值

成功: SID长度
失败: 0

注意/说明

None.

相关

_Security__IsValidSid

详情参考

在MSDN中搜索


示例/演示


#include <Security.au3>

Local $tSID = _Security__GetAccountSid(@UserName)
If Not @error Then
    ; $tSID is structure filled with SID data for spesified account
    ; Check its length:
    Local $iLength = _Security__GetLengthSid($tSID)
    ConsoleWrite("The length of SID is: " & $iLength & " bytes" & @CRLF)

    ; ... The rest of the script here...
EndIf