| 52 | // ============================================================================= |
| 53 | |
| 54 | const 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 | |
| 66 | const char* GetStateString(DWORD state) { |
| 67 | if (state & MEM_COMMIT) return "COMMIT"; |
no outgoing calls
no test coverage detected