4 * Copyright 1998 Ove Kåven
7 #ifndef __WINE_DOSEXE_H
8 #define __WINE_DOSEXE_H
10 #include <sys/types.h>
13 #include "sig_context.h"
16 typedef struct _DOSTASK
{
19 WORD psp_seg
,load_seg
;
20 WORD init_cs
,init_ip
,init_ss
,init_sp
;
22 WORD dpmi_seg
,dpmi_sel
,dpmi_flag
;
23 DWORD wrap_ofs
,call_ofs
;
28 int read_pipe
,write_pipe
;
30 } DOSTASK
, *LPDOSTASK
;
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
);
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 */