| 168 | } |
| 169 | |
| 170 | void VMFree(void* pAddress) |
| 171 | { |
| 172 | // MSDN: |
| 173 | // If the dwFreeType parameter is MEM_RELEASE, this parameter(dwSize) must be 0(zero). |
| 174 | // The function frees the entire region that is reserved in the initial allocation call to VirtualAlloc. |
| 175 | VirtualFree(pAddress, 0, MEM_RELEASE); |
| 176 | } |
| 177 | |
| 178 | bool VMProtect(void* pAddress, size_t nSize, |
| 179 | VM_PROTECT_FLAG nNewProtect, VM_PROTECT_FLAG* pOldProtect) |
no outgoing calls
no test coverage detected