Exemplo n.º 1
0
        public static bool VerifyEmbeddedSignature(string fileName)
        {
            WinTrustData         wtd        = new WinTrustData(fileName);
            Guid                 guidAction = new Guid(WINTRUST_ACTION_GENERIC_VERIFY_V2);
            WinVerifyTrustResult result     = WinVerifyTrust(INVALID_HANDLE_VALUE, guidAction, wtd);
            bool                 ret        = (result == WinVerifyTrustResult.Success);

            return(ret);
        }
Exemplo n.º 2
0
 public static extern WinVerifyTrustResult WinVerifyTrust(IntPtr hwnd, [MarshalAs(UnmanagedType.LPStruct)] Guid pgActionID,
                                                          WinTrustData pWVTData);