Process Hacker
verify.h
Go to the documentation of this file.
1 #ifndef _PH_VERIFY_H
2 #define _PH_VERIFY_H
3 
4 #include <wintrust.h>
5 #include <softpub.h>
6 
7 #define PH_VERIFY_DEFAULT_SIZE_LIMIT (32 * 1024 * 1024)
8 
9 typedef enum _VERIFY_RESULT
10 {
11  VrUnknown = 0,
20 
21 #define PH_VERIFY_PREVENT_NETWORK_ACCESS 0x1
22 #define PH_VERIFY_VIEW_PROPERTIES 0x2
23 
24 typedef struct _PH_VERIFY_FILE_INFO
25 {
26  PWSTR FileName;
27  ULONG Flags; // PH_VERIFY_*
28 
29  ULONG FileSizeLimitForHash; // 0 for PH_VERIFY_DEFAULT_SIZE_LIMIT, -1 for unlimited
32 
33  HWND hWnd; // for PH_VERIFY_VIEW_PROPERTIES
35 
38  _In_ PWSTR FileName,
39  _Out_opt_ PPH_STRING *SignerName
40  );
41 
42 NTSTATUS PhVerifyFileEx(
43  _In_ PPH_VERIFY_FILE_INFO Information,
44  _Out_ VERIFY_RESULT *VerifyResult,
45  _Out_opt_ PCERT_CONTEXT **Signatures,
46  _Out_opt_ PULONG NumberOfSignatures
47  );
48 
50  _In_ PCERT_CONTEXT *Signatures,
51  _In_ ULONG NumberOfSignatures
52  );
53 
55  _In_ PCERT_CONTEXT Certificate
56  );
57 
58 #endif