Пример #1
0
 public SafeCryptoBlobOut()
     : base(true)
 {
     this.m_pBlob = SafeLocalFree.LocalAlloc(Marshal.SizeOf(typeof(NativeMethods.DATA_BLOB)));
     base.handle  = this.m_pBlob.DangerousGetHandle();
 }
 public static extern bool AllocateAndInitializeSid(SafeLocalFree pSidAuthPtr, byte nSubAuthorityCount, uint nSubAuthority0, uint nSubAuthority1, uint nSubAuthority2, uint nSubAuthority3, uint nSubAuthority4, uint nSubAuthority5, uint nSubAuthority6, uint nSubAuthority7, out SafeSidPtr pSid);