// constructor for silent WinTrustDataChoice.File check public WinTrustData(String filename) { var wtfiData = new WinTrustFileInfo(filename); FileInfoPtr = Marshal.AllocCoTaskMem(Marshal.SizeOf(typeof(WinTrustFileInfo))); Marshal.StructureToPtr(wtfiData, FileInfoPtr, false); }
// constructor for silent WinTrustDataChoice.File check public WinTrustData(String filename) { var wtfiData = new WinTrustFileInfo(filename); FileInfoPtr = Marshal.AllocCoTaskMem(Marshal.SizeOf(typeof (WinTrustFileInfo))); Marshal.StructureToPtr(wtfiData, FileInfoPtr, false); }