pty_handle is a HANDLE, not an int.
[wine.git] / include / dosexe.h
blobde1069d4588cacbb2315421cb7c590798b09e00c
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 void WINAPI MZ_LoadImage( LPCSTR filename, HANDLE hFile );
34 extern BOOL WINAPI MZ_Exec( CONTEXT86 *context, LPCSTR filename, BYTE func, LPVOID paramblk );
35 extern void WINAPI MZ_Exit( CONTEXT86 *context, BOOL cs_psp, WORD retval );
36 extern LPDOSTASK WINAPI MZ_Current( void );
37 extern LPDOSTASK WINAPI MZ_AllocDPMITask( void );
38 extern int WINAPI DOSVM_Enter( CONTEXT86 *context );
39 extern void WINAPI DOSVM_Wait( int read_pipe, HANDLE hObject );
40 extern void WINAPI DOSVM_QueueEvent( int irq, int priority, void (*relay)(CONTEXT86*,void*), void *data );
41 extern void WINAPI DOSVM_PIC_ioport_out( WORD port, BYTE val );
42 extern void WINAPI DOSVM_SetTimer( unsigned ticks );
43 extern unsigned WINAPI DOSVM_GetTimer( void );
45 #endif /* __WINE_DOSEXE_H */