Skip to content

Latest commit

 

History

History
54 lines (37 loc) · 1.03 KB

ConvertSidToStringSid.md

File metadata and controls

54 lines (37 loc) · 1.03 KB

Home

Function name : ConvertSidToStringSid

Group: Security - Library: advapi32


Converts a security identifier (SID) to a string format suitable for display, storage, or transmission.


Code examples:

Retrieving local computer and user names

Declaration:

BOOL ConvertSidToStringSid(
  PSID Sid,
  LPTSTR* StringSid
);  

FoxPro declaration:

DECLARE INTEGER ConvertSidToStringSid IN advapi32;
	INTEGER Sid,;
	INTEGER @StringSid  

Parameters:

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.


Return value:

If the function succeeds, the return value is nonzero.


Comments:

Examples of what this function returns:
S-1-800
S-1-5-21-606747154-839522115-1708537768-1004