MCPcopy Create free account
hub / github.com/dobin/RedEdr / GetProtectionString

Function GetProtectionString

RedTest/redtest.cpp:54–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52// =============================================================================
53
54const char* GetProtectionString(DWORD protect) {
55 if (protect & PAGE_NOACCESS) return "---";
56 if (protect & PAGE_EXECUTE_READWRITE) return "RWX";
57 if (protect & PAGE_EXECUTE_READ) return "R-X";
58 if (protect & PAGE_EXECUTE) return "--X";
59 if (protect & PAGE_READWRITE) return "RW-";
60 if (protect & PAGE_READONLY) return "R--";
61 if (protect & PAGE_WRITECOPY) return "RWC";
62 if (protect & PAGE_EXECUTE_WRITECOPY) return "RXC";
63 return "???";
64}
65
66const char* GetStateString(DWORD state) {
67 if (state & MEM_COMMIT) return "COMMIT";

Callers 2

EnumerateMemoryRegionsFunction · 0.85
PrintMemorySegmentsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected