mirror of
https://github.com/geode-sdk/geode.git
synced 2024-12-03 04:36:55 -05:00
29 lines
No EOL
658 B
C++
29 lines
No EOL
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 |