summaryrefslogtreecommitdiff
path: root/aoe2hd/include/native.h
diff options
context:
space:
mode:
Diffstat (limited to 'aoe2hd/include/native.h')
-rwxr-xr-xaoe2hd/include/native.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/aoe2hd/include/native.h b/aoe2hd/include/native.h
index b599e0d..297028a 100755
--- a/aoe2hd/include/native.h
+++ b/aoe2hd/include/native.h
@@ -18,12 +18,16 @@ typedef bool(*write_mem_fn)(const native_data *nd,
unsigned long siz);
typedef bool(*suspend_proc_fn)(const native_data *nd,
int doResume);
+typedef unsigned long(*iterate_mem_fn)(const native_data *nd,
+ unsigned long *addr,
+ unsigned long *size);
typedef struct win_proc
{
DWORD pid;
HANDLE hndl;
- unsigned long modbase;
+ HMODULE modbase;
+ DWORD modsize;
} win_proc;
typedef struct native_data
@@ -33,13 +37,14 @@ typedef struct native_data
read_mem_fn read_fn;
write_mem_fn write_fn;
suspend_proc_fn suspend_fn;
+ iterate_mem_fn iterate_fn;
} native_data;
EXPORT void initNativeData(native_data *nd);
EXPORT void cls(HANDLE hConsole);
EXPORT bool get_module_proc(native_data *nd,
LPCTSTR window_name);
-EXPORT bool get_module_base(native_data *nd,
+EXPORT bool get_module_info(native_data *nd,
LPCTSTR module_name);
EXPORT unsigned long mem_alloc(const native_data *nd,
@@ -52,5 +57,8 @@ EXPORT bool write_procmem(const native_data *nd,
unsigned long siz);
EXPORT bool suspendProcess(const native_data *nd,
int doResume);
+EXPORT unsigned long iterate_mem(const native_data *nd,
+ unsigned long *addr,
+ unsigned long *size);
#endif // NATIVE_H_INCLUDED