GetSidIdentifierAuthority (advapi32)
Last changed: vfinn-194.149.77.201

.
Summary
The GetSidIdentifierAuthority function returns a pointer to the SID_IDENTIFIER_AUTHORITY structure in a specified security identifier (SID).

C# Signature:

[DllImport("advapi32.dll", SetLastError=true)]
static extern TODO GetSidIdentifierAuthority(TODO);

VB Signature:

Declare Function GetSidIdentifierAuthority Lib "advapi32.dll" (
   ByVal psid As IntPtr
) As IntPtr

User-Defined Types:

None.

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

'Extract the authority record from the SID.
Dim sia(5) As Byte
Runtime.InteropServices.Marshal.Copy(GetSidIdentifierAuthority(pSID), sia, 0, 6)

Alternative Managed API:

Do you know one? Please contribute it!

Documentation