mirror of
https://github.com/geode-sdk/geode.git
synced 2024-12-14 18:11:15 -05:00
29 lines
658 B
C
29 lines
658 B
C
|
#ifndef GET_PROCESS_MODULE_MAP_H
|
||
|
#define GET_PROCESS_MODULE_MAP_H
|
||
|
|
||
|
#include "PlatformUnifiedInterface/StdMemory.h"
|
||
|
|
||
|
#include <vector>
|
||
|
#include <algorithm>
|
||
|
|
||
|
typedef struct _RuntimeModule {
|
||
|
char path[1024];
|
||
|
void *load_address;
|
||
|
} RuntimeModule;
|
||
|
|
||
|
class ProcessRuntimeUtility {
|
||
|
public:
|
||
|
// ================================================================
|
||
|
// Process Memory
|
||
|
|
||
|
static std::vector<MemoryRegion> GetProcessMemoryLayout();
|
||
|
|
||
|
// ================================================================
|
||
|
// Process Module
|
||
|
|
||
|
static std::vector<RuntimeModule> GetProcessModuleMap();
|
||
|
|
||
|
static RuntimeModule GetProcessModule(const char *name);
|
||
|
};
|
||
|
|
||
|
#endif
|