Click or drag to resize
Xcalibur Systems LLC Logo

SecurityHelperConvertSidToStringSid Method

The ConvertSidToStringSid function converts a security identifier (SID) to a string format suitable for display, storage, or transmission.

ConvertSidToStringSid function


Namespace: Xcalibur.NativeMethods.V2.Security
Assembly: Xcalibur.NativeMethods.V2 (in Xcalibur.NativeMethods.V2.dll) Version: 1.0.1.0
Syntax
[DllImportAttribute("advapi32.dll", CharSet = CharSet.Auto)]
public static bool ConvertSidToStringSid(
	IntPtr sidPointer,
	out string sid
)

Parameters

sidPointer  IntPtr
A pointer to the SID structure to be converted.
sid  String
A pointer to a variable that receives a pointer to a null-terminated SID string.

Return Value

Boolean
If the function succeeds, the return value is nonzero. To determine whether the function adjusted all of the specified privileges, call .
See Also