Function Reference

_Security__SidToStringSid

バイナリSIDを文字列に変換します。

#Include <Security.au3>
_Security__SidToStringSid($pSID)

 

パラメータ

$pSID 変換するバイナリSIDへのポインタ

 

返し値

成功: 文字列形式のSID
失敗: 空文字列

 

注意

なし。

 

関連

_Security__StringSidToSid

 

こちらも参照

MSDNライブラリでConvertSidToStringSidを検索して下さい。

 


#include <Security.au3>

$account=@UserName
$sid =_Security__GetAccountSid($account)
$stringSID = _Security__SidToStringSid(DllStructGetPtr($sid,1))
MsgBox(0, "SID", "User = " & $account & @CRLF & "SID = " & $stringSID)