| 343 | |
| 344 | |
| 345 | char* getMemoryRegionState(DWORD type) { |
| 346 | const char* memoryType; |
| 347 | switch (type) { |
| 348 | case MEM_FREE: |
| 349 | memoryType = "FREE"; |
| 350 | break; |
| 351 | case MEM_RESERVE: |
| 352 | memoryType = "RESERVE"; |
| 353 | break; |
| 354 | case MEM_COMMIT: |
| 355 | memoryType = "COMMIT"; |
| 356 | break; |
| 357 | default: |
| 358 | memoryType = "Unknown"; |
| 359 | break; |
| 360 | } |
| 361 | return (char*) memoryType; |
| 362 | } |
| 363 | |
| 364 | |
| 365 | wchar_t* GetMemoryPermissions_Unused(wchar_t* buf, DWORD protection) { |