diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2020-03-26 21:38:15 +0100 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2020-03-26 21:38:15 +0100 |
commit | 7658321752585beb05668257628bc2ec3ddc17ef (patch) | |
tree | 67aca50eaa093a462269eabb7c91ac9e8d14f228 /aoe2hd/include/native.h | |
parent | 65686da6fc1f91e3a831347703c758ea3ca97c3e (diff) |
replaced age2hd cheat with a actually working one.. or at least worked
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'aoe2hd/include/native.h')
-rwxr-xr-x | aoe2hd/include/native.h | 64 |
1 files changed, 0 insertions, 64 deletions
diff --git a/aoe2hd/include/native.h b/aoe2hd/include/native.h deleted file mode 100755 index 297028a..0000000 --- a/aoe2hd/include/native.h +++ /dev/null @@ -1,64 +0,0 @@ -#ifndef NATIVE_H_INCLUDED -#define NATIVE_H_INCLUDED - -#include <windows.h> -#include <stdbool.h> - -#define EXPORT __declspec(dllexport) - -typedef struct native_data native_data; - -typedef unsigned long(*alloc_mem_fn)(const native_data *nd, - unsigned long siz); -typedef bool(*read_mem_fn)(const native_data *nd, - unsigned long addr, void *buffer, - unsigned long siz); -typedef bool(*write_mem_fn)(const native_data *nd, - unsigned long addr, const void *buffer, - 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; - HMODULE modbase; - DWORD modsize; -} win_proc; - -typedef struct native_data -{ - win_proc proc; - alloc_mem_fn alloc_fn; - 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_info(native_data *nd, - LPCTSTR module_name); - -EXPORT unsigned long mem_alloc(const native_data *nd, - unsigned long siz); -EXPORT bool read_procmem(const native_data *nd, - unsigned long addr, void *buffer, - unsigned long siz); -EXPORT bool write_procmem(const native_data *nd, - unsigned long addr, const void *buffer, - 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 |