Skip to content

Instantly share code, notes, and snippets.

@jfromaniello
Created March 8, 2013 13:56
Show Gist options
  • Save jfromaniello/5116591 to your computer and use it in GitHub Desktop.
Save jfromaniello/5116591 to your computer and use it in GitHub Desktop.
I need to know what these two do exactly. I guess they serialize/deserialize ```cer``` certificates somehow, but not sur how. Thanks
[DllImport("ifsutils.dll")]
private static int WsDeserializeTrustPolicyStore([MarshalAs(UnmanagedType.Bool)] bool UpdateMachineStore, [MarshalAs(UnmanagedType.LPArray)] byte[] pSerializedStore, [MarshalAs(UnmanagedType.U4)] int cbSerializedStore, out System.Web.Security.SingleSignOn.SafeCertStoreHandle phCertStore);
[DllImport("ifsutils.dll")]
private static int WsSerializeTrustPolicyStore(System.Web.Security.SingleSignOn.SafeCertStoreHandle hCertStore, [MarshalAs(UnmanagedType.LPArray, ArraySubType = UnmanagedType.LPWStr)] string[] Thumbprints, [MarshalAs(UnmanagedType.U4)] int cThumbprints, out CriticalLocalMemHandle pSerializedStore, out int pcbSerializedStore);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment