Added missing #include "config.h"
[wine/multimedia.git] / include / dosexe.h
blob8782116475d6c2c4c0dae6a9abb0b40d2d96d09c
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 "sig_context.h"
14 #include "wintypes.h"
16 typedef struct _DOSTASK {
17 LPVOID img;
18 unsigned img_ofs;
19 WORD psp_seg,load_seg;
20 WORD init_cs,init_ip,init_ss,init_sp;
21 WORD xms_seg;
22 WORD dpmi_seg,dpmi_sel,dpmi_flag;
23 DWORD wrap_ofs,call_ofs;
24 WORD system_timer;
25 HMODULE16 hModule;
26 char mm_name[128];
27 int mm_fd;
28 int read_pipe,write_pipe;
29 pid_t task;
30 } DOSTASK, *LPDOSTASK;
32 #ifdef linux
34 #define MZ_SUPPORTED
36 struct _NE_MODULE;
38 extern int MZ_InitTask( LPDOSTASK lpDosTask );
39 extern int MZ_InitMemory( LPDOSTASK lpDosTask, struct _NE_MODULE *pModule );
40 extern void MZ_KillModule( LPDOSTASK lpDosTask );
41 extern LPDOSTASK MZ_AllocDPMITask( HMODULE16 hModule );
43 #endif /* linux */
45 #define V86_FLAG 0x00020000
47 extern void (*ctx_debug_call)( int, CONTEXT* );
48 extern BOOL32 (*instr_emu_call)( SIGCONTEXT* );
50 extern void MZ_Tick( WORD handle );
52 extern HINSTANCE16 MZ_CreateProcess( LPCSTR name, LPCSTR cmdline, LPCSTR env,
53 LPSTARTUPINFO32A startup, LPPROCESS_INFORMATION info );
54 extern int DOSVM_Enter( PCONTEXT context );
56 #endif /* __WINE_DOSEXE_H */