# Function Reference

# _Security__SidToStringSid

Converts a binary SID to a string

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

## Parameters

$pSID | Pointer to a binary SID to be converted

## Return Value

Success: | the SID in string form.
Failure: | an empty string.

## Related

_Security__StringSidToSid

## See Also

Search ConvertSidToStringSid in MSDN Library.

## Example

    #include <MsgBoxConstants.au3>
    #include <Security.au3>

    Local $sAccount = @UserName
    Local $tSID = _Security__GetAccountSid($sAccount)
    Local $sStringSID = _Security__SidToStringSid($tSID)
    MsgBox($MB_SYSTEMMODAL, "SID", "User = " & $sAccount & @CRLF & "SID = " & $sStringSID)