env_w32_dll_export_kernel32_hooks.h

Go to the documentation of this file.
00001 /********************************************************************************
00002  *                               libemu
00003  *
00004  *                    - x86 shellcode emulation -
00005  *
00006  *
00007  * Copyright (C) 2007  Paul Baecher & Markus Koetter
00008  * 
00009  * This program is free software; you can redistribute it and/or
00010  * modify it under the terms of the GNU General Public License
00011  * as published by the Free Software Foundation; either version 2
00012  * of the License, or (at your option) any later version.
00013  * 
00014  * This program is distributed in the hope that it will be useful,
00015  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00016  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017  * GNU General Public License for more details.
00018  * 
00019  * You should have received a copy of the GNU General Public License
00020  * along with this program; if not, write to the Free Software
00021  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
00022  * 
00023  * 
00024  *             contact nepenthesdev@users.sourceforge.net  
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;         /* 00 */
00065         HANDLE hThread;          /* 01 */
00066         DWORD dwProcessId;       /* 02 */
00067         DWORD dwThreadId;        /* 03 */
00068 }PROCESS_INFORMATION, *LPPROCESS_INFORMATION;
00069 
00070 
00071 typedef struct _STARTUPINFO
00072 {
00073         DWORD cb;                                /* 00 */
00074         LPTSTR lpReserved;               /* 01 */
00075         LPTSTR lpDesktop;                /* 02 */
00076         LPTSTR lpTitle;                  /* 03 */
00077         DWORD dwX;                               /* 04 */
00078         DWORD dwY;                               /* 05 */
00079         DWORD dwXSize;                   /* 06 */
00080         DWORD dwYSize;                   /* 07 */
00081         DWORD dwXCountChars;     /* 08 */
00082         DWORD dwYCountChars;     /* 09 */
00083         DWORD dwFillAttribute;   /* 10 */
00084         DWORD dwFlags;                   /* 11 */
00085         WORD wShowWindow;                /* 12 */
00086         WORD cbReserved2;                /* 13 */
00087         LPBYTE lpReserved2;              /* 14 */
00088         HANDLE hStdInput;                /* 15 */
00089         HANDLE hStdOutput;               /* 16 */
00090         HANDLE hStdError;                /* 17 */
00091 } STARTUPINFO, *LPSTARTUPINFO;
00092 
00093 

Generated on Sun Jan 9 16:47:44 2011 for libemu by  doxygen 1.6.1