env_w32_dll_export_kernel32_hooks.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #include <stdint.h>
00029
00030 int32_t env_w32_hook_CloseHandle(struct emu_env *env, struct emu_env_hook *hook);
00031 int32_t env_w32_hook_CreateFileA(struct emu_env *env, struct emu_env_hook *hook);
00032 int32_t env_w32_hook_CreateProcessA(struct emu_env *env, struct emu_env_hook *hook);
00033 int32_t env_w32_hook_DeleteFileA(struct emu_env *env, struct emu_env_hook *hook);
00034 int32_t env_w32_hook_ExitProcess(struct emu_env *env, struct emu_env_hook *hook);
00035 int32_t env_w32_hook_ExitThread(struct emu_env *env, struct emu_env_hook *hook);
00036 int32_t env_w32_hook_GetProcAddress(struct emu_env *env, struct emu_env_hook *hook);
00037 int32_t env_w32_hook_GetSystemDirectoryA(struct emu_env *env, struct emu_env_hook *hook);
00038 int32_t env_w32_hook_GetTempPathA(struct emu_env *env, struct emu_env_hook *hook);
00039 int32_t env_w32_hook_GetTickCount(struct emu_env *env, struct emu_env_hook *hook);
00040 int32_t env_w32_hook_GetVersion(struct emu_env *env, struct emu_env_hook *hook);
00041 int32_t env_w32_hook__hwrite(struct emu_env *env, struct emu_env_hook *hook);
00042 int32_t env_w32_hook__lclose(struct emu_env *env, struct emu_env_hook *hook);
00043 int32_t env_w32_hook__lcreat(struct emu_env *env, struct emu_env_hook *hook);
00044 int32_t env_w32_hook_LoadLibrayA(struct emu_env *env, struct emu_env_hook *hook);
00045 int32_t env_w32_hook__lwrite(struct emu_env *env, struct emu_env_hook *hook);
00046 int32_t env_w32_hook_malloc(struct emu_env *env, struct emu_env_hook *hook);
00047 int32_t env_w32_hook_memset(struct emu_env *env, struct emu_env_hook *hook);
00048 int32_t env_w32_hook_SetUnhandledExceptionFilter(struct emu_env *env, struct emu_env_hook *hook);
00049 int32_t env_w32_hook_Sleep(struct emu_env *env, struct emu_env_hook *hook);
00050 int32_t env_w32_hook_WaitForSingleObject(struct emu_env *env, struct emu_env_hook *hook);
00051 int32_t env_w32_hook_WinExec(struct emu_env *env, struct emu_env_hook *hook);
00052 int32_t env_w32_hook_WriteFile(struct emu_env *env, struct emu_env_hook *hook);
00053 int32_t env_w32_hook_VirtualProtect(struct emu_env *env, struct emu_env_hook *hook);
00054
00055 #define HANDLE int32_t
00056 #define DWORD uint32_t
00057 #define WORD uint16_t
00058
00059 #define LPTSTR char *
00060 #define LPBYTE char *
00061
00062 typedef struct _PROCESS_INFORMATION
00063 {
00064 HANDLE hProcess;
00065 HANDLE hThread;
00066 DWORD dwProcessId;
00067 DWORD dwThreadId;
00068 }PROCESS_INFORMATION, *LPPROCESS_INFORMATION;
00069
00070
00071 typedef struct _STARTUPINFO
00072 {
00073 DWORD cb;
00074 LPTSTR lpReserved;
00075 LPTSTR lpDesktop;
00076 LPTSTR lpTitle;
00077 DWORD dwX;
00078 DWORD dwY;
00079 DWORD dwXSize;
00080 DWORD dwYSize;
00081 DWORD dwXCountChars;
00082 DWORD dwYCountChars;
00083 DWORD dwFillAttribute;
00084 DWORD dwFlags;
00085 WORD wShowWindow;
00086 WORD cbReserved2;
00087 LPBYTE lpReserved2;
00088 HANDLE hStdInput;
00089 HANDLE hStdOutput;
00090 HANDLE hStdError;
00091 } STARTUPINFO, *LPSTARTUPINFO;
00092
00093