1 #ifndef __WINE_PE_IMAGE_H
2 #define __WINE_PE_IMAGE_H
8 struct pe_header_s *pe_header;
9 struct pe_segment_table *pe_seg;
10 struct PE_Import_Directory *pe_import;
11 struct PE_Export_Directory *pe_export;
12 struct PE_Resource_Directory *pe_resource;
13 struct PE_Reloc_Block *pe_reloc;
17 int resource_offset; /* offset to resource typedirectory in file */
20 typedef struct _WIN32_function{
25 typedef struct _WIN32_builtin{
27 WIN32_function *functions;
28 WIN32_function *last_func;
30 struct _WIN32_builtin *next;
35 struct w_files * next;
36 char * name; /* Name, as it appears in the windows binaries */
37 char * filename; /* Actual name of the unix file that satisfies this */
38 int type; /* DLL or EXE */
42 struct mz_header_s *mz_header;
45 unsigned int load_addr;
46 WIN32_builtin* builtin;
50 extern int PE_unloadImage(struct w_files *wpnt);
51 extern int PE_StartProgram(struct w_files *wpnt);
52 extern void PE_InitDLL(HMODULE hModule);
53 extern void my_wcstombs(char * result, u_short * source, int len);
54 extern struct w_files *wine_files;
56 #endif /* __WINE_PE_IMAGE_H */