Small corrections in mmio declarations.
[wine] / include / dosexe.h
1 /*
2  * DOS EXE loader
3  *
4  * Copyright 1998 Ove Kåven
5  */
6
7 #ifndef __WINE_DOSEXE_H
8 #define __WINE_DOSEXE_H
9
10 #include <sys/types.h>
11 #include "windows.h"
12 #include "winnt.h"
13 #include "wintypes.h"
14
15 typedef struct _DOSTASK {
16  LPVOID img;
17  unsigned img_ofs;
18  WORD psp_seg,load_seg;
19  WORD init_cs,init_ip,init_ss,init_sp;
20  WORD xms_seg;
21  WORD dpmi_seg,dpmi_sel,dpmi_flag;
22  HMODULE16 hModule;
23  char mm_name[128];
24  int mm_fd;
25  int read_pipe,write_pipe;
26  pid_t task;
27 } DOSTASK, *LPDOSTASK;
28
29 #ifdef linux
30
31 #define MZ_SUPPORTED
32
33 struct _NE_MODULE;
34
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
39 #endif /* linux */
40
41 extern void (*ctx_debug_call)( int sig, CONTEXT* );
42
43 extern HINSTANCE16 MZ_CreateProcess( LPCSTR name, LPCSTR cmdline, LPCSTR env,
44                                      LPSTARTUPINFO32A startup, LPPROCESS_INFORMATION info );
45 extern int DOSVM_Enter( PCONTEXT context );
46
47 #endif /* __WINE_DOSEXE_H */