emu_env_w32.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 #ifndef HAVE_EMU_ENV_W32
00029 #define HAVE_EMU_ENV_W32
00030 
00031 #include <stdint.h>
00032 
00033 struct emu;
00034 struct emu_env_w32_dll;
00035 struct emu_env_w32_dll_export;
00036 struct emu_profile;
00037 struct emu_env;
00038 struct emu_env_hook;
00039 
00045 struct emu_env_w32
00046 {
00050         struct emu *emu;
00054         struct emu_env_w32_dll **loaded_dlls;
00058         uint32_t        baseaddr;
00059 };
00060 
00069 struct emu_env_w32 *emu_env_w32_new(struct emu *e);
00070 
00076 void emu_env_w32_free(struct emu_env_w32 *env);
00077 
00078 int32_t emu_env_w32_load_dll(struct emu_env_w32 *env, char *path);
00079 
00090 int32_t emu_env_w32_export_hook(struct emu_env *env,
00091                                                                 const char *exportname, 
00092                                                                 uint32_t                (*fnhook)(struct emu_env *env, struct emu_env_hook *hook, ...),
00093                                                                 void *userdata);
00094 
00095 
00096 
00106 struct emu_env_hook *emu_env_w32_eip_check(struct emu_env *env);
00107 
00108 #endif
00109 

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