Release 980913
[wine/multimedia.git] / include / dosexe.h
blob3eb82f573fafe51930b86a162e3366c269797149
1 /*
2 * DOS EXE loader
4 * Copyright 1998 Ove Kåven
5 */
7 #ifdef linux
9 #include <unistd.h>
10 #include <sys/ipc.h>
11 #include <sys/shm.h>
12 #include <sys/vm86.h>
13 #include "wintypes.h"
15 typedef struct _DOSTASK {
16 LPVOID img;
17 unsigned img_ofs;
18 WORD psp_seg,load_seg;
19 HMODULE16 hModule;
20 struct vm86plus_struct VM86;
21 int fn, state;
22 char mm_name[128];
23 int mm_fd;
24 int read_pipe,write_pipe;
25 pid_t task;
26 } DOSTASK, *LPDOSTASK;
28 #define MZ_SUPPORTED
30 extern int MZ_InitTask( LPDOSTASK lpDosTask );
31 extern int MZ_InitMemory( LPDOSTASK lpDosTask, NE_MODULE *pModule );
32 extern int MZ_RunModule( LPDOSTASK lpDosTask );
33 extern void MZ_KillModule( LPDOSTASK lpDosTask );
34 extern int DOSVM_Process( LPDOSTASK lpDosTask );
36 #endif /* linux */
38 extern HINSTANCE16 MZ_CreateProcess( LPCSTR name, LPCSTR cmdline, LPCSTR env,
39 LPSTARTUPINFO32A startup, LPPROCESS_INFORMATION info );
40 extern int DOSVM_Enter( PCONTEXT context );