4 * Copyright 1998 Ove Kåven
7 #ifndef __WINE_DOSEXE_H
8 #define __WINE_DOSEXE_H
10 #include <sys/types.h> /* pid_t */
12 #include "sig_context.h"
14 typedef struct _DOSTASK {
17 WORD psp_seg,load_seg;
18 WORD init_cs,init_ip,init_ss,init_sp;
20 WORD dpmi_seg,dpmi_sel,dpmi_flag;
25 int read_pipe,write_pipe;
27 } DOSTASK, *LPDOSTASK;
29 #if defined(linux) && defined(__i386__)
35 extern int MZ_InitTask( LPDOSTASK lpDosTask );
36 extern int MZ_InitMemory( LPDOSTASK lpDosTask, struct _NE_MODULE *pModule );
37 extern void MZ_KillModule( LPDOSTASK lpDosTask );
38 extern LPDOSTASK MZ_AllocDPMITask( HMODULE16 hModule );
40 #endif /* linux-i386 */
42 #define V86_FLAG 0x00020000
44 extern void MZ_Tick( WORD handle );
46 extern HINSTANCE16 MZ_CreateProcess( LPCSTR name, LPCSTR cmdline, LPCSTR env, BOOL32 inherit,
47 LPSTARTUPINFO32A startup, LPPROCESS_INFORMATION info );
48 extern int DOSVM_Enter( PCONTEXT context );
49 extern void DOSVM_SetTimer( unsigned ticks );
50 extern unsigned DOSVM_GetTimer( void );
52 #endif /* __WINE_DOSEXE_H */