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