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 */
22 unsigned short hinstance
;
25 struct mz_header_s
*mz_header
;
31 extern int PE_unloadImage(struct w_files
*wpnt
);
32 extern int PE_StartProgram(struct w_files
*wpnt
);
33 extern void PE_InitDLL(struct w_files
*wpnt
);
34 extern HINSTANCE
PE_LoadImage(struct w_files
*wpnt
);
35 extern void my_wcstombs(char * result
, u_short
* source
, int len
);
37 typedef struct _WIN32_function
{
42 typedef struct _WIN32_builtin
{
44 WIN32_function
*functions
;
46 struct _WIN32_builtin
*next
;
49 extern WIN32_builtin
*WIN32_builtin_list
;
51 #endif /* __WINE_PE_IMAGE_H */