public static bool VerifyFile(string fileName)
 {
     using (var wtfi = new WinTrustFileInfo(fileName))
         using (var wtd = new WinTrustData(wtfi))
         {
             return(WinVerifyTrust(INVALID_HANDLE, WINTRUST_ACTION_GENERIC_VERIFY_V2, wtd) == WinVerifyTrustResult.Success);
         }
 }
 public static extern WinVerifyTrustResult WinVerifyTrust([In] IntPtr hwnd, [In][MarshalAs(UnmanagedType.LPStruct)] Guid pgActionID, [In] WinTrustData pWVTData);