Converting a Binary SID to String Format in C++

The ConvertSidToStringSid and ConvertStringSidToSid functions convert a security identifier (SID) to and from string format. For a description of the SID string format, see SID Components.