4 * Copyright 1998 Ove Kåven
7 #ifndef __WINE_DOSEXE_H
8 #define __WINE_DOSEXE_H
10 #include <sys/types.h> /* pid_t */
11 #include "winbase.h" /* for LPSTARTUPINFO32A */
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__)
33 extern BOOL MZ_InitTask( LPDOSTASK lpDosTask );
34 extern void MZ_KillModule( LPDOSTASK lpDosTask );
35 extern LPDOSTASK MZ_AllocDPMITask( HMODULE16 hModule );
37 #endif /* linux-i386 */
39 #define V86_FLAG 0x00020000
41 extern void MZ_Tick( WORD handle );
43 extern BOOL MZ_CreateProcess( HFILE hFile, OFSTRUCT *ofs, LPCSTR cmdline,
44 LPCSTR env, BOOL inherit, LPSTARTUPINFOA startup,
45 LPPROCESS_INFORMATION info );
46 extern int DOSVM_Enter( PCONTEXT context );
47 extern void DOSVM_SetTimer( unsigned ticks );
48 extern unsigned DOSVM_GetTimer( void );
50 #endif /* __WINE_DOSEXE_H */