Fixed some graphical problems of the treeview and added support LMB
[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> /* pid_t */
11 #include "winbase.h"   /* for LPSTARTUPINFO32A */
12 #include "sig_context.h"
13
14 typedef struct _DOSTASK {
15  LPVOID img;
16  unsigned img_ofs;
17  WORD psp_seg,load_seg;
18  WORD init_cs,init_ip,init_ss,init_sp;
19  WORD xms_seg;
20  WORD dpmi_seg,dpmi_sel,dpmi_flag;
21  WORD system_timer;
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 #if defined(linux) && defined(__i386__)
30
31 #define MZ_SUPPORTED
32
33 extern BOOL MZ_InitTask( LPDOSTASK lpDosTask );
34 extern void MZ_KillModule( LPDOSTASK lpDosTask );
35 extern LPDOSTASK MZ_AllocDPMITask( HMODULE16 hModule );
36
37 #endif /* linux-i386 */
38
39 #define V86_FLAG 0x00020000
40
41 extern void MZ_Tick( WORD handle );
42
43 extern BOOL MZ_CreateProcess( HFILE hFile, OFSTRUCT *ofs, LPCSTR cmdline, 
44                               LPCSTR env, BOOL inherit, LPSTARTUPINFOA startup, 
45                               LPPROCESS_INFORMATION info );
46 extern int DOSVM_Enter( PCONTEXT context );
47 extern void DOSVM_SetTimer( unsigned ticks );
48 extern unsigned DOSVM_GetTimer( void );
49
50 #endif /* __WINE_DOSEXE_H */