| 6 | #include "WinVerHelper.h" |
| 7 | |
| 8 | inline LPVOID CreateMemoryPage(DWORD dwRegionSize, DWORD dwProtection) |
| 9 | { |
| 10 | LPVOID pMemBase = nullptr; |
| 11 | |
| 12 | __try |
| 13 | { |
| 14 | pMemBase = g_winapiApiTable->VirtualAlloc(0, dwRegionSize, MEM_COMMIT | MEM_RESERVE, dwProtection); |
| 15 | } |
| 16 | __except (EXCEPTION_EXECUTE_HANDLER) { } |
| 17 | |
| 18 | return pMemBase; |
| 19 | } |
| 20 | |
| 21 | auto IScanner::GetProtectedMemoryRegions() |
| 22 | { |
no outgoing calls
no test coverage detected