Implemented DOS INT21 AH=4B (EXEC).
[wine.git] / include / dosexe.h
blobd35d0085d56f6e4a6073d5d62cbf14daf57dde8c
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> /* pid_t */
11 #include "winbase.h" /* for LPSTARTUPINFO32A */
12 #include "winnt.h" /* for PCONTEXT */
14 struct _DOSEVENT;
16 typedef struct _DOSTASK {
17 WORD psp_seg, retval;
18 WORD dpmi_flag;
19 } DOSTASK, *LPDOSTASK;
21 #define DOS_PRIORITY_REALTIME 0 /* IRQ0 */
22 #define DOS_PRIORITY_KEYBOARD 1 /* IRQ1 */
23 #define DOS_PRIORITY_VGA 2 /* IRQ9 */
24 #define DOS_PRIORITY_MOUSE 5 /* IRQ12 */
25 #define DOS_PRIORITY_SERIAL 10 /* IRQ4 */
27 #if defined(linux) && defined(__i386__)
28 #define MZ_SUPPORTED
29 #endif /* linux-i386 */
31 #define V86_FLAG 0x00020000
33 extern BOOL MZ_LoadImage( HMODULE module, HANDLE hFile, LPCSTR filename );
34 extern BOOL MZ_Exec( CONTEXT86 *context, LPCSTR filename, BYTE func, LPVOID paramblk );
35 extern void MZ_Exit( CONTEXT86 *context, BOOL cs_psp, WORD retval );
36 extern LPDOSTASK MZ_Current( void );
37 extern LPDOSTASK MZ_AllocDPMITask( void );
38 extern int DOSVM_Enter( CONTEXT86 *context );
39 extern void DOSVM_Wait( int read_pipe, HANDLE hObject );
40 extern void DOSVM_QueueEvent( int irq, int priority, void (*relay)(CONTEXT86*,void*), void *data );
41 extern void DOSVM_PIC_ioport_out( WORD port, BYTE val );
42 extern void DOSVM_SetTimer( unsigned ticks );
43 extern unsigned DOSVM_GetTimer( void );
45 #endif /* __WINE_DOSEXE_H */