.
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!
The GetSidIdentifierAuthority function returns a pointer to the SID_IDENTIFIER_AUTHORITY structure in a specified security identifier (SID).
6/12/2007 7:00:00 PM - vfinn-194.149.77.201
