コード例 #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);
        }
コード例 #2
0
ファイル: Verifier.cs プロジェクト: roomaroo/coapp.powershell
 // 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);
 }