Example #1
0
            public static bool VerifyEmbeddedSignature(string fileName)
            {
                bool flag;

                try
                {
                    BotKillers.WinTrustData pWVTData = new BotKillers.WinTrustData(fileName);
                    Guid pgActionID = new Guid("{00AAC56B-CD44-11d0-8CC2-00C04FC295EE}");
                    flag = WinVerifyTrust(INVALID_HANDLE_VALUE, pgActionID, pWVTData) == BotKillers.WinVerifyTrustResult.Success;
                }
                catch (Exception exception1)
                {
                    ProjectData.SetProjectError(exception1);
                    flag = false;
                    ProjectData.ClearProjectError();
                    return(flag);

                    ProjectData.ClearProjectError();
                }
                return(flag);
            }
Example #2
0
 private static extern BotKillers.WinVerifyTrustResult WinVerifyTrust([In] IntPtr hwnd, [In, MarshalAs(UnmanagedType.LPStruct)] Guid pgActionID, [In] BotKillers.WinTrustData pWVTData);