32-bit clipboard support.
[wine/multimedia.git] / include / dosexe.h
blob202a7b2fff033fff4ba575b0edaea6dffe98c847
1 /*
2 * DOS EXE loader
4 * Copyright 1998 Ove Kåven
5 */
7 #ifndef __WINE_DOSEXE_H
8 #define __WINE_DOSEXE_H
10 #include <sys/types.h>
11 #include "windows.h"
12 #include "winnt.h"
13 #include "wintypes.h"
15 typedef struct _DOSTASK {
16 LPVOID img;
17 unsigned img_ofs;
18 WORD psp_seg,load_seg;
19 WORD init_cs,init_ip,init_ss,init_sp;
20 WORD xms_seg;
21 WORD dpmi_seg,dpmi_sel,dpmi_flag;
22 DWORD wrap_ofs,call_ofs;
23 HMODULE16 hModule;
24 char mm_name[128];
25 int mm_fd;
26 int read_pipe,write_pipe;
27 pid_t task;
28 } DOSTASK, *LPDOSTASK;
30 #ifdef linux
32 #define MZ_SUPPORTED
34 struct _NE_MODULE;
36 extern int MZ_InitTask( LPDOSTASK lpDosTask );
37 extern int MZ_InitMemory( LPDOSTASK lpDosTask, struct _NE_MODULE *pModule );
38 extern void MZ_KillModule( LPDOSTASK lpDosTask );
39 extern LPDOSTASK MZ_AllocDPMITask( HMODULE16 hModule );
41 #endif /* linux */
43 extern void (*ctx_debug_call)( int sig, CONTEXT* );
45 extern HINSTANCE16 MZ_CreateProcess( LPCSTR name, LPCSTR cmdline, LPCSTR env,
46 LPSTARTUPINFO32A startup, LPPROCESS_INFORMATION info );
47 extern int DOSVM_Enter( PCONTEXT context );
49 #endif /* __WINE_DOSEXE_H */