Pushbuttons should only be rounded in Win31 look.
[wine/multimedia.git] / include / dosexe.h
blob7d126c7a2c2e275ba2e2e091080a6a427a4f2ec6
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 */
13 #include "sig_context.h"
15 typedef struct _DOSSYSTEM {
16 int id;
17 void *data;
18 struct _DOSSYSTEM *next;
19 } DOSSYSTEM;
21 struct _DOSEVENT;
23 typedef struct _DOSTASK {
24 LPVOID img;
25 unsigned img_ofs;
26 WORD psp_seg,load_seg;
27 WORD init_cs,init_ip,init_ss,init_sp;
28 WORD xms_seg;
29 WORD dpmi_seg,dpmi_sel,dpmi_flag;
30 HMODULE16 hModule;
31 char mm_name[128];
32 int mm_fd;
33 HANDLE hReadPipe,hXPipe;
34 int read_pipe,write_pipe;
35 pid_t task;
36 int sig_sent;
37 struct _DOSEVENT *pending,*current;
38 DOSSYSTEM *sys;
39 } DOSTASK, *LPDOSTASK;
41 typedef struct _DOSEVENT {
42 int irq,priority;
43 void (*relay)(LPDOSTASK,PCONTEXT,void*);
44 void *data;
45 struct _DOSEVENT *next;
46 } DOSEVENT, *LPDOSEVENT;
48 #define DOS_PRIORITY_REALTIME 0 /* IRQ0 */
49 #define DOS_PRIORITY_KEYBOARD 1 /* IRQ1 */
50 #define DOS_PRIORITY_VGA 2 /* IRQ9 */
51 #define DOS_PRIORITY_MOUSE 5 /* IRQ12 */
52 #define DOS_PRIORITY_SERIAL 10 /* IRQ4 */
54 #if defined(linux) && defined(__i386__)
56 #define MZ_SUPPORTED
58 extern BOOL MZ_InitTask( LPDOSTASK lpDosTask );
59 extern void MZ_KillModule( LPDOSTASK lpDosTask );
60 extern LPDOSTASK MZ_AllocDPMITask( HMODULE16 hModule );
61 extern void DOSVM_QueueEvent( int irq, int priority, void (*relay)(LPDOSTASK,PCONTEXT,void*), void *data );
63 #endif /* linux-i386 */
65 #define V86_FLAG 0x00020000
67 extern BOOL MZ_CreateProcess( HFILE hFile, OFSTRUCT *ofs, LPCSTR cmdline, LPCSTR env,
68 LPSECURITY_ATTRIBUTES psa, LPSECURITY_ATTRIBUTES tsa,
69 BOOL inherit, LPSTARTUPINFOA startup,
70 LPPROCESS_INFORMATION info );
71 extern int DOSVM_Enter( PCONTEXT context );
72 extern void DOSVM_PIC_ioport_out( WORD port, BYTE val );
73 extern void DOSVM_SetTimer( unsigned ticks );
74 extern unsigned DOSVM_GetTimer( void );
75 extern void DOSVM_SetSystemData( int id, void *data );
76 extern void* DOSVM_GetSystemData( int id );
78 #endif /* __WINE_DOSEXE_H */