Changeset 85121 in vbox for trunk/src/VBox/HostDrivers/Support/win/SUPHardenedVerify-win.h
- Timestamp:
- Jul 8, 2020 7:33:26 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/win/SUPHardenedVerify-win.h
r82968 r85121 44 44 #ifndef SUP_CERTIFICATES_ONLY 45 45 # ifdef RT_OS_WINDOWS 46 DECL HIDDEN(int) supHardenedWinInitImageVerifier(PRTERRINFO pErrInfo);47 DECL HIDDEN(void) supHardenedWinTermImageVerifier(void);48 DECL HIDDEN(void) supR3HardenedWinVerifyCacheScheduleImports(RTLDRMOD hLdrMod, PCRTUTF16 pwszName);49 DECL HIDDEN(void) supR3HardenedWinVerifyCachePreload(PCRTUTF16 pwszName);46 DECL_HIDDEN_NOTHROW(int) supHardenedWinInitImageVerifier(PRTERRINFO pErrInfo); 47 DECL_HIDDEN_NOTHROW(void) supHardenedWinTermImageVerifier(void); 48 DECL_HIDDEN_NOTHROW(void) supR3HardenedWinVerifyCacheScheduleImports(RTLDRMOD hLdrMod, PCRTUTF16 pwszName); 49 DECL_HIDDEN_NOTHROW(void) supR3HardenedWinVerifyCachePreload(PCRTUTF16 pwszName); 50 50 51 51 … … 76 76 #define SUPHARDNTVP_F_EXEC_ALLOC_REPLACE_WITH_RW RT_BIT_32(0) 77 77 /** @} */ 78 DECL HIDDEN(int) supHardenedWinVerifyProcess(HANDLE hProcess, HANDLE hThread, SUPHARDNTVPKIND enmKind, uint32_t fFlags,79 uint32_t *pcFixes, PRTERRINFO pErrInfo);80 DECL HIDDEN(int) supHardNtVpThread(HANDLE hProcess, HANDLE hThread, PRTERRINFO pErrInfo);81 DECL HIDDEN(int) supHardNtVpDebugger(HANDLE hProcess, PRTERRINFO pErrInfo);82 83 DECL HIDDEN(bool) supHardViUtf16PathIsEqualEx(PCRTUTF16 pawcLeft, size_t cwcLeft, const char *pszRight);84 DECL HIDDEN(bool) supHardViUniStrPathStartsWithUniStr(UNICODE_STRING const *pUniStrLeft,85 UNICODE_STRING const *pUniStrRight, bool fCheckSlash);86 DECL HIDDEN(bool) supHardViUtf16PathStartsWithEx(PCRTUTF16 pwszLeft, uint32_t cwcLeft,87 PCRTUTF16 pwszRight, uint32_t cwcRight, bool fCheckSlash);88 DECL HIDDEN(bool) supHardViIsAppPatchDir(PCRTUTF16 pwszPath, uint32_t cwcName);78 DECL_HIDDEN_NOTHROW(int) supHardenedWinVerifyProcess(HANDLE hProcess, HANDLE hThread, SUPHARDNTVPKIND enmKind, 79 uint32_t fFlags, uint32_t *pcFixes, PRTERRINFO pErrInfo); 80 DECL_HIDDEN_NOTHROW(int) supHardNtVpThread(HANDLE hProcess, HANDLE hThread, PRTERRINFO pErrInfo); 81 DECL_HIDDEN_NOTHROW(int) supHardNtVpDebugger(HANDLE hProcess, PRTERRINFO pErrInfo); 82 83 DECL_HIDDEN_NOTHROW(bool) supHardViUtf16PathIsEqualEx(PCRTUTF16 pawcLeft, size_t cwcLeft, const char *pszRight); 84 DECL_HIDDEN_NOTHROW(bool) supHardViUniStrPathStartsWithUniStr(UNICODE_STRING const *pUniStrLeft, 85 UNICODE_STRING const *pUniStrRight, bool fCheckSlash); 86 DECL_HIDDEN_NOTHROW(bool) supHardViUtf16PathStartsWithEx(PCRTUTF16 pwszLeft, uint32_t cwcLeft, 87 PCRTUTF16 pwszRight, uint32_t cwcRight, bool fCheckSlash); 88 DECL_HIDDEN_NOTHROW(bool) supHardViIsAppPatchDir(PCRTUTF16 pwszPath, uint32_t cwcName); 89 89 90 90 … … 114 114 /** Pointer to an SUP image verifier loader reader instance. */ 115 115 typedef SUPHNTVIRDR *PSUPHNTVIRDR; 116 DECL HIDDEN(int) supHardNtViRdrCreate(HANDLE hFile, PCRTUTF16 pwszName, uint32_t fFlags, PSUPHNTVIRDR *ppNtViRdr);117 DECL HIDDEN(bool) supHardenedWinIsWinVerifyTrustCallable(void);118 DECL HIDDEN(int) supHardenedWinVerifyImageTrust(HANDLE hFile, PCRTUTF16 pwszName, uint32_t fFlags, int rc,119 bool *pfWinVerifyTrust, PRTERRINFO pErrInfo);120 DECL HIDDEN(int) supHardenedWinVerifyImageByHandle(HANDLE hFile, PCRTUTF16 pwszName, uint32_t fFlags, bool fAvoidWinVerifyTrust,121 bool *pfWinVerifyTrust, PRTERRINFO pErrInfo);122 DECL HIDDEN(int) supHardenedWinVerifyImageByHandleNoName(HANDLE hFile, uint32_t fFlags, PRTERRINFO pErrInfo);123 DECL HIDDEN(int) supHardenedWinVerifyImageByLdrMod(RTLDRMOD hLdrMod, PCRTUTF16 pwszName, PSUPHNTVIRDR pNtViRdr,124 bool fAvoidWinVerifyTrust, bool *pfWinVerifyTrust, PRTERRINFO pErrInfo);116 DECL_HIDDEN_NOTHROW(int) supHardNtViRdrCreate(HANDLE hFile, PCRTUTF16 pwszName, uint32_t fFlags, PSUPHNTVIRDR *ppNtViRdr); 117 DECL_HIDDEN_NOTHROW(bool) supHardenedWinIsWinVerifyTrustCallable(void); 118 DECL_HIDDEN_NOTHROW(int) supHardenedWinVerifyImageTrust(HANDLE hFile, PCRTUTF16 pwszName, uint32_t fFlags, int rc, 119 bool *pfWinVerifyTrust, PRTERRINFO pErrInfo); 120 DECL_HIDDEN_NOTHROW(int) supHardenedWinVerifyImageByHandle(HANDLE hFile, PCRTUTF16 pwszName, uint32_t fFlags, 121 bool fAvoidWinVerifyTrust, bool *pfWinVerifyTrust, PRTERRINFO pErrInfo); 122 DECL_HIDDEN_NOTHROW(int) supHardenedWinVerifyImageByHandleNoName(HANDLE hFile, uint32_t fFlags, PRTERRINFO pErrInfo); 123 DECL_HIDDEN_NOTHROW(int) supHardenedWinVerifyImageByLdrMod(RTLDRMOD hLdrMod, PCRTUTF16 pwszName, PSUPHNTVIRDR pNtViRdr, 124 bool fAvoidWinVerifyTrust, bool *pfWinVerifyTrust, PRTERRINFO pErrInfo); 125 125 /** @name SUPHNTVI_F_XXX - Flags for supHardenedWinVerifyImageByHandle. 126 126 * @{ */ … … 176 176 /** Pointer to a loader cache entry. */ 177 177 typedef SUPHNTLDRCACHEENTRY *PSUPHNTLDRCACHEENTRY; 178 DECL HIDDEN(int) supHardNtLdrCacheOpen(const char *pszName, PSUPHNTLDRCACHEENTRY *ppEntry, PRTERRINFO pErrInfo);179 DECL HIDDEN(int) supHardNtLdrCacheEntryVerify(PSUPHNTLDRCACHEENTRY pEntry, PCRTUTF16 pwszName, PRTERRINFO pErrInfo);180 DECL HIDDEN(int) supHardNtLdrCacheEntryGetBits(PSUPHNTLDRCACHEENTRY pEntry, uint8_t **ppbBits, RTLDRADDR uBaseAddress,181 PFNRTLDRIMPORT pfnGetImport, void *pvUser, PRTERRINFO pErrInfo);178 DECL_HIDDEN_NOTHROW(int) supHardNtLdrCacheOpen(const char *pszName, PSUPHNTLDRCACHEENTRY *ppEntry, PRTERRINFO pErrInfo); 179 DECL_HIDDEN_NOTHROW(int) supHardNtLdrCacheEntryVerify(PSUPHNTLDRCACHEENTRY pEntry, PCRTUTF16 pwszName, PRTERRINFO pErrInfo); 180 DECL_HIDDEN_NOTHROW(int) supHardNtLdrCacheEntryGetBits(PSUPHNTLDRCACHEENTRY pEntry, uint8_t **ppbBits, RTLDRADDR uBaseAddress, 181 PFNRTLDRIMPORT pfnGetImport, void *pvUser, PRTERRINFO pErrInfo); 182 182 183 183 … … 189 189 } SUPHARDNTSYSROOTDIR; 190 190 191 DECL HIDDEN(int) supHardNtGetSystemRootDir(void *pvBuf, uint32_t cbBuf, SUPHARDNTSYSROOTDIR enmDir, PRTERRINFO pErrInfo);191 DECL_HIDDEN_NOTHROW(int) supHardNtGetSystemRootDir(void *pvBuf, uint32_t cbBuf, SUPHARDNTSYSROOTDIR enmDir, PRTERRINFO pErrInfo); 192 192 193 193 # ifndef SUPHNTVI_NO_NT_STUFF … … 214 214 # ifdef IN_RING0 215 215 /** Pointer to NtQueryVirtualMemory. */ 216 typedef NTSTATUS (NTAPI *PFNNTQUERYVIRTUALMEMORY)(HANDLE, void const *, MEMORY_INFORMATION_CLASS, PVOID, SIZE_T, PSIZE_T); 216 typedef DECLCALLBACKPTR_EX(NTSTATUS, NTAPI, PFNNTQUERYVIRTUALMEMORY,(HANDLE, void const *, MEMORY_INFORMATION_CLASS, 217 PVOID, SIZE_T, PSIZE_T)); 217 218 extern PFNNTQUERYVIRTUALMEMORY g_pfnNtQueryVirtualMemory; 218 219 # endif
Note:
See TracChangeset
for help on using the changeset viewer.