Added indirection for ctx_debug to the DOS loader, so Winelib works
[wine/dcerpc.git] / include / dosexe.h
blob3fb33e153673d49d89f8dce2bb77f5ff7717247f
1 /*
2 * DOS EXE loader
4 * Copyright 1998 Ove Kåven
5 */
7 #ifndef __WINE_DOSEXE_H
8 #define __WINE_DOSEXE_H
10 #include <sys/types.h>
11 #include "windows.h"
12 #include "winnt.h"
13 #include "wintypes.h"
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;
29 #ifdef linux
31 #define MZ_SUPPORTED
33 struct _NE_MODULE;
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 );
39 #endif /* linux */
41 extern void (*ctx_debug_call)( int sig, CONTEXT* );
43 extern HINSTANCE16 MZ_CreateProcess( LPCSTR name, LPCSTR cmdline, LPCSTR env,
44 LPSTARTUPINFO32A startup, LPPROCESS_INFORMATION info );
45 extern int DOSVM_Enter( PCONTEXT context );
47 #endif /* __WINE_DOSEXE_H */