public static extern bool AllocateAndInitializeSid([In] PSID_IDENTIFIER_AUTHORITY sia, byte subAuthorityCount, int dwSubAuthority0, int dwSubAuthority1, int dwSubAuthority2, int dwSubAuthority3, int dwSubAuthority4, int dwSubAuthority5, int dwSubAuthority6, int dwSubAuthority7, out SafeAllocatedSID pSid);
public static extern PSID FreeSid(SafeAllocatedSID pSid);