Group: Security - Library: advapi32
Converts a security identifier (SID) to a string format suitable for display, storage, or transmission.
Retrieving local computer and user names
BOOL ConvertSidToStringSid(
PSID Sid,
LPTSTR* StringSid
);
DECLARE INTEGER ConvertSidToStringSid IN advapi32;
INTEGER Sid,;
INTEGER @StringSid
Sid [in] Pointer to the SID structure to convert.
StringSid [out] Pointer to a variable that receives a pointer to a null-terminated SID string. To free the returned buffer, call the LocalFree function.
If the function succeeds, the return value is nonzero.
Examples of what this function returns:
S-1-800
S-1-5-21-606747154-839522115-1708537768-1004