Beispiel #1
0
        // 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);
        }
Beispiel #2
0
 // 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);
 }