Function Reference


_Security__StringSidToSid

Converts a String SID to a binary SID

#include <Security.au3>
_Security__StringSidToSid ( $sSID )

Parameters

$sSID String SID to be converted

Return Value

Success: the SID in a byte structure.
Failure: 0.

Related

_Security__SidToStringSid

See Also

Search ConvertStringSidToSid in MSDN Library.

Example

#include <Security.au3>
#include <SecurityConstants.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