MCPcopy Create free account
hub / github.com/NoMercy-ac/NoMercy / CreateMemoryPage

Function CreateMemoryPage

Source/Client/NM_Engine/IMemoryWorkingSetScanner.cpp:8–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6#include "WinVerHelper.h"
7
8inline 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
21auto IScanner::GetProtectedMemoryRegions()
22{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected