diff options
Diffstat (limited to 'ModuleScanner.h')
| -rw-r--r-- | ModuleScanner.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/ModuleScanner.h b/ModuleScanner.h new file mode 100644 index 0000000..7fe2fdb --- /dev/null +++ b/ModuleScanner.h | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | #include <stdlib.h> | ||
| 2 | |||
| 3 | struct DynLibInfo | ||
| 4 | { | ||
| 5 | void *baseAddress; | ||
| 6 | size_t memorySize; | ||
| 7 | }; | ||
| 8 | |||
| 9 | class CModuleScanner | ||
| 10 | { | ||
| 11 | public: | ||
| 12 | CModuleScanner(void *addr); | ||
| 13 | void *FindSignature(const char *sig, const char *pattern); | ||
| 14 | |||
| 15 | private: | ||
| 16 | bool GetLibraryInfo(const void *libPtr, DynLibInfo &lib); | ||
| 17 | void *m_addr; | ||
| 18 | }; | ||
