annotate loader/wine/module.h @ 2227:10b279d72a8f

mov seeking implemented
author arpi
date Tue, 16 Oct 2001 22:41:46 +0000
parents 3b5f5d1c5041
children 4dad31e655b6
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
1 /*
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
2 * Module definitions
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
3 *
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
4 * Copyright 1995 Alexandre Julliard
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
5 */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
6
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
7 #ifndef __WINE_MODULE_H
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
8 #define __WINE_MODULE_H
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
9
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
10 #include "windef.h"
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
11 //#include "dosexe.h"
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
12 #include "pe_image.h"
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
13
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
14
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
15
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
16 typedef struct {
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
17 BYTE type;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
18 BYTE flags;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
19 BYTE segnum;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
20 WORD offs WINE_PACKED;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
21 } ET_ENTRY;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
22
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
23 typedef struct {
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
24 WORD first; /* ordinal */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
25 WORD last; /* ordinal */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
26 WORD next; /* bundle */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
27 } ET_BUNDLE;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
28
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
29
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
30 /* In-memory segment table */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
31 typedef struct
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
32 {
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
33 WORD filepos; /* Position in file, in sectors */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
34 WORD size; /* Segment size on disk */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
35 WORD flags; /* Segment flags */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
36 WORD minsize; /* Min. size of segment in memory */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
37 HANDLE16 hSeg; /* Selector or handle (selector - 1) */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
38 /* of segment in memory */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
39 } SEGTABLEENTRY;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
40
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
41
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
42 /* Self-loading modules contain this structure in their first segment */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
43
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
44 #include "pshpack1.h"
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
45
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
46 typedef struct
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
47 {
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
48 WORD version; /* Must be "A0" (0x3041) */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
49 WORD reserved;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
50 FARPROC16 BootApp; /* startup procedure */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
51 FARPROC16 LoadAppSeg; /* procedure to load a segment */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
52 FARPROC16 reserved2;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
53 FARPROC16 MyAlloc; /* memory allocation procedure,
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
54 * wine must write this field */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
55 FARPROC16 EntryAddrProc;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
56 FARPROC16 ExitProc; /* exit procedure */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
57 WORD reserved3[4];
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
58 FARPROC16 SetOwner; /* Set Owner procedure, exported by wine */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
59 } SELFLOADHEADER;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
60
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
61 /* Parameters for LoadModule() */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
62 typedef struct
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
63 {
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
64 HGLOBAL16 hEnvironment; /* Environment segment */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
65 SEGPTR cmdLine WINE_PACKED; /* Command-line */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
66 SEGPTR showCmd WINE_PACKED; /* Code for ShowWindow() */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
67 SEGPTR reserved WINE_PACKED;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
68 } LOADPARAMS16;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
69
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
70 typedef struct
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
71 {
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
72 LPSTR lpEnvAddress;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
73 LPSTR lpCmdLine;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
74 UINT16 *lpCmdShow;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
75 DWORD dwReserved;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
76 } LOADPARAMS;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
77
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
78 #include "poppack.h"
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
79
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
80 /* internal representation of 32bit modules. per process. */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
81 typedef enum {
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
82 MODULE32_PE = 1,
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
83 MODULE32_ELF,
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
84 MODULE32_ELFDLL
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
85 } MODULE32_TYPE;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
86
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
87 typedef struct _wine_modref
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
88 {
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
89 struct _wine_modref *next;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
90 struct _wine_modref *prev;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
91 MODULE32_TYPE type;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
92 union {
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
93 PE_MODREF pe;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
94 ELF_MODREF elf;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
95 } binfmt;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
96
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
97 HMODULE module;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
98
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
99 int nDeps;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
100 struct _wine_modref **deps;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
101
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
102 int flags;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
103 int refCount;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
104
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
105 char *filename;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
106 char *modname;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
107 char *short_filename;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
108 char *short_modname;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
109 } WINE_MODREF;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
110
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
111 #define WINE_MODREF_INTERNAL 0x00000001
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
112 #define WINE_MODREF_NO_DLL_CALLS 0x00000002
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
113 #define WINE_MODREF_PROCESS_ATTACHED 0x00000004
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
114 #define WINE_MODREF_LOAD_AS_DATAFILE 0x00000010
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
115 #define WINE_MODREF_DONT_RESOLVE_REFS 0x00000020
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
116 #define WINE_MODREF_MARKER 0x80000000
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
117
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
118
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
119
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
120 /* Resource types */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
121 typedef struct resource_typeinfo_s NE_TYPEINFO;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
122 typedef struct resource_nameinfo_s NE_NAMEINFO;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
123
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
124 #define NE_SEG_TABLE(pModule) \
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
125 ((SEGTABLEENTRY *)((char *)(pModule) + (pModule)->seg_table))
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
126
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
127 #define NE_MODULE_TABLE(pModule) \
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
128 ((WORD *)((char *)(pModule) + (pModule)->modref_table))
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
129
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
130 #define NE_MODULE_NAME(pModule) \
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
131 (((OFSTRUCT *)((char*)(pModule) + (pModule)->fileinfo))->szPathName)
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
132
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
133 /* module.c */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
134 extern FARPROC MODULE_GetProcAddress( HMODULE hModule, LPCSTR function, WIN_BOOL snoop );
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
135 extern WINE_MODREF *MODULE32_LookupHMODULE( HMODULE hModule );
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
136 extern WIN_BOOL MODULE_DllProcessAttach( WINE_MODREF *wm, LPVOID lpReserved );
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
137 extern void MODULE_DllProcessDetach( WINE_MODREF *wm, WIN_BOOL bForceDetach, LPVOID lpReserved );
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
138 extern void MODULE_DllThreadAttach( LPVOID lpReserved );
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
139 extern void MODULE_DllThreadDetach( LPVOID lpReserved );
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
140 extern WINE_MODREF *MODULE_LoadLibraryExA( LPCSTR libname, HFILE hfile, DWORD flags );
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
141 extern WIN_BOOL MODULE_FreeLibrary( WINE_MODREF *wm );
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
142 extern WINE_MODREF *MODULE_FindModule( LPCSTR path );
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
143 extern HMODULE MODULE_CreateDummyModule( LPCSTR filename, HMODULE module32 );
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
144 extern FARPROC16 WINAPI WIN32_GetProcAddress16( HMODULE hmodule, LPCSTR name );
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
145 extern SEGPTR WINAPI HasGPHandler16( SEGPTR address );
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
146 extern void MODULE_WalkModref( DWORD id );
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
147
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
148 /* resource.c */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
149 extern INT WINAPI AccessResource(HMODULE,HRSRC);
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
150 /*
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
151 / loader/ne/module.c
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
152 extern NE_MODULE *NE_GetPtr( HMODULE16 hModule );
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
153 extern void NE_DumpModule( HMODULE16 hModule );
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
154 extern void NE_WalkModules(void);
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
155 extern void NE_RegisterModule( NE_MODULE *pModule );
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
156 extern WORD NE_GetOrdinal( HMODULE16 hModule, const char *name );
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
157 extern FARPROC16 WINAPI NE_GetEntryPoint( HMODULE16 hModule, WORD ordinal );
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
158 extern FARPROC16 NE_GetEntryPointEx( HMODULE16 hModule, WORD ordinal, WIN_BOOL16 snoop );
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
159 extern WIN_BOOL16 NE_SetEntryPoint( HMODULE16 hModule, WORD ordinal, WORD offset );
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
160 extern int NE_OpenFile( NE_MODULE *pModule );
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
161 extern WIN_BOOL NE_CreateProcess( HANDLE hFile, LPCSTR filename, LPCSTR cmd_line, LPCSTR env,
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
162 LPSECURITY_ATTRIBUTES psa, LPSECURITY_ATTRIBUTES tsa,
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
163 WIN_BOOL inherit, DWORD flags, LPSTARTUPINFOA startup,
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
164 LPPROCESS_INFORMATION info );
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
165 extern WIN_BOOL NE_InitProcess( NE_MODULE *pModule );
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
166
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
167
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
168 / loader/ne/resource.c
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
169 extern HGLOBAL16 WINAPI NE_DefResourceHandler(HGLOBAL16,HMODULE16,HRSRC16);
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
170 extern WIN_BOOL NE_InitResourceHandler( HMODULE16 hModule );
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
171 extern HRSRC16 NE_FindResource( NE_MODULE *pModule, LPCSTR name, LPCSTR type );
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
172 extern INT16 NE_AccessResource( NE_MODULE *pModule, HRSRC16 hRsrc );
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
173 extern DWORD NE_SizeofResource( NE_MODULE *pModule, HRSRC16 hRsrc );
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
174 extern HGLOBAL16 NE_LoadResource( NE_MODULE *pModule, HRSRC16 hRsrc );
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
175 extern WIN_BOOL16 NE_FreeResource( NE_MODULE *pModule, HGLOBAL16 handle );
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
176 extern NE_TYPEINFO *NE_FindTypeSection( LPBYTE pResTab, NE_TYPEINFO *pTypeInfo, LPCSTR typeId );
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
177 extern NE_NAMEINFO *NE_FindResourceFromType( LPBYTE pResTab, NE_TYPEINFO *pTypeInfo, LPCSTR resId );
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
178
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
179 // loader/ne/segment.c
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
180 extern WIN_BOOL NE_LoadSegment( NE_MODULE *pModule, WORD segnum );
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
181 extern WIN_BOOL NE_LoadAllSegments( NE_MODULE *pModule );
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
182 extern WIN_BOOL NE_CreateSegment( NE_MODULE *pModule, int segnum );
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
183 extern WIN_BOOL NE_CreateAllSegments( NE_MODULE *pModule );
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
184 extern HINSTANCE16 NE_GetInstance( NE_MODULE *pModule );
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
185 extern void NE_InitializeDLLs( HMODULE16 hModule );
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
186 extern void NE_DllProcessAttach( HMODULE16 hModule );
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
187
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
188 // loader/ne/convert.c
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
189 HGLOBAL16 NE_LoadPEResource( NE_MODULE *pModule, WORD type, LPVOID bits, DWORD size );
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
190 */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
191 /* relay32/builtin.c */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
192 extern WINE_MODREF *BUILTIN32_LoadLibraryExA(LPCSTR name, DWORD flags);
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
193 extern HMODULE BUILTIN32_LoadExeModule( LPCSTR *filename );
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
194 extern void BUILTIN32_UnloadLibrary(WINE_MODREF *wm);
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
195 extern void *BUILTIN32_dlopen( const char *name );
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
196 extern int BUILTIN32_dlclose( void *handle );
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
197
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
198 #endif /* __WINE_MODULE_H */