1 #ifndef __WINE_PE_IMAGE_H
2 #define __WINE_PE_IMAGE_H
7 struct pe_header_s
*pe_header
;
8 struct pe_segment_table
*pe_seg
;
9 struct PE_Import_Directory
*pe_import
;
10 struct PE_Export_Directory
*pe_export
;
11 struct PE_Resource_Directory
*pe_resource
;
12 int resource_offset
; /* offset to resource typedirectory in file */
17 struct w_files
* next
;
18 char * name
; /* Name, as it appears in the windows binaries */
19 char * filename
; /* Actual name of the unix file that satisfies this */
20 int type
; /* DLL or EXE */
25 struct mz_header_s
*mz_header
;
28 unsigned int load_addr
;
32 extern int PE_unloadImage(struct w_files
*wpnt
);
33 extern int PE_StartProgram(struct w_files
*wpnt
);
34 extern void PE_InitDLL(struct w_files
*wpnt
);
35 extern HINSTANCE
PE_LoadImage(struct w_files
*wpnt
);
36 extern void my_wcstombs(char * result
, u_short
* source
, int len
);
37 extern struct w_files
*wine_files
;
39 typedef struct _WIN32_function
{
44 typedef struct _WIN32_builtin
{
46 WIN32_function
*functions
;
48 struct _WIN32_builtin
*next
;
51 extern WIN32_builtin
*WIN32_builtin_list
;
53 #endif /* __WINE_PE_IMAGE_H */