|
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.SecurityAssembly: 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
)
<DllImportAttribute("advapi32.dll", CharSet := CharSet.Auto>]
Public Shared Function ConvertSidToStringSid (
sidPointer As IntPtr,
<OutAttribute> ByRef sid As String
) As Boolean
public:
[DllImportAttribute(L"advapi32.dll", CharSet = CharSet::Auto)]
static bool ConvertSidToStringSid(
IntPtr sidPointer,
[InAttribute] [OutAttribute] String^% sid
)
[<DllImportAttribute("advapi32.dll", CharSet = CharSet.Auto)>]
static member ConvertSidToStringSid :
sidPointer : IntPtr *
sid : string byref -> bool
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
BooleanIf the function succeeds, the return value is nonzero. To determine whether the
function adjusted all of the specified privileges, call
.
See Also