Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Using <a href="http://www.codeplex.com/clrinterop" rel="nofollow noreferrer">P/Invoke Interop Assistant</a>:</p> <pre><code> [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public struct SidIdentifierAuthority { /// BYTE[6] [System.Runtime.InteropServices.MarshalAsAttribute( System.Runtime.InteropServices.UnmanagedType.ByValArray, SizeConst = 6, ArraySubType = System.Runtime.InteropServices.UnmanagedType.I1)] public byte[] Value; } public partial class NativeMethods { /// Return Type: BOOL-&gt;int ///pIdentifierAuthority: PSID_IDENTIFIER_AUTHORITY-&gt;_SID_IDENTIFIER_AUTHORITY* ///nSubAuthorityCount: BYTE-&gt;unsigned char ///nSubAuthority0: DWORD-&gt;unsigned int ///nSubAuthority1: DWORD-&gt;unsigned int ///nSubAuthority2: DWORD-&gt;unsigned int ///nSubAuthority3: DWORD-&gt;unsigned int ///nSubAuthority4: DWORD-&gt;unsigned int ///nSubAuthority5: DWORD-&gt;unsigned int ///nSubAuthority6: DWORD-&gt;unsigned int ///nSubAuthority7: DWORD-&gt;unsigned int ///pSid: PSID* [System.Runtime.InteropServices.DllImportAttribute("advapi32.dll", EntryPoint = "AllocateAndInitializeSid")] [return: System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.Bool)] public static extern bool AllocateAndInitializeSid( [System.Runtime.InteropServices.InAttribute()] ref SidIdentifierAuthority pIdentifierAuthority, byte nSubAuthorityCount, uint nSubAuthority0, uint nSubAuthority1, uint nSubAuthority2, uint nSubAuthority3, uint nSubAuthority4, uint nSubAuthority5, uint nSubAuthority6, uint nSubAuthority7, out System.IntPtr pSid); } </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload