annotate loader/wine/driver.h @ 5438:607d437c1d9d

fixed new_chunk calculation at seeking (seeking not work yet) and added -nosound support
author arpi
date Sun, 31 Mar 2002 22:44:03 +0000
parents 3b5f5d1c5041
children 251338cf2f58
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
1 /*
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
2 * Drivers definitions
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
3 */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
4
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
5 #ifndef __WINE_DRIVER_H
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
6 #define __WINE_DRIVER_H
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
7
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
8 #include "windef.h"
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
9
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
10 #define MMSYSERR_BASE 0
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
11
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
12 #define MMSYSERR_NOERROR 0 /* no error */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
13 #define MMSYSERR_ERROR (MMSYSERR_BASE + 1) /* unspecified error */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
14 #define MMSYSERR_BADDEVICEID (MMSYSERR_BASE + 2) /* device ID out of range */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
15 #define MMSYSERR_NOTENABLED (MMSYSERR_BASE + 3) /* driver failed enable */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
16 #define MMSYSERR_ALLOCATED (MMSYSERR_BASE + 4) /* device already allocated */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
17 #define MMSYSERR_INVALHANDLE (MMSYSERR_BASE + 5) /* device handle is invalid */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
18 #define MMSYSERR_NODRIVER (MMSYSERR_BASE + 6) /* no device driver present */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
19 #define MMSYSERR_NOMEM (MMSYSERR_BASE + 7) /* memory allocation error */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
20 #define MMSYSERR_NOTSUPPORTED (MMSYSERR_BASE + 8) /* function isn't supported */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
21 #define MMSYSERR_BADERRNUM (MMSYSERR_BASE + 9) /* error value out of range */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
22 #define MMSYSERR_INVALFLAG (MMSYSERR_BASE + 10) /* invalid flag passed */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
23 #define MMSYSERR_INVALPARAM (MMSYSERR_BASE + 11) /* invalid parameter passed */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
24 #define MMSYSERR_LASTERROR (MMSYSERR_BASE + 11) /* last error in range */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
25
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
26 #define DRV_LOAD 0x0001
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
27 #define DRV_ENABLE 0x0002
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
28 #define DRV_OPEN 0x0003
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
29 #define DRV_CLOSE 0x0004
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
30 #define DRV_DISABLE 0x0005
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
31 #define DRV_FREE 0x0006
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
32 #define DRV_CONFIGURE 0x0007
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
33 #define DRV_QUERYCONFIGURE 0x0008
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
34 #define DRV_INSTALL 0x0009
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
35 #define DRV_REMOVE 0x000A
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
36 #define DRV_EXITSESSION 0x000B
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
37 #define DRV_EXITAPPLICATION 0x000C
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
38 #define DRV_POWER 0x000F
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
39
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
40 #define DRV_RESERVED 0x0800
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
41 #define DRV_USER 0x4000
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
42
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
43 #define DRVCNF_CANCEL 0x0000
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
44 #define DRVCNF_OK 0x0001
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
45 #define DRVCNF_RESTART 0x0002
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
46
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
47 #define DRVEA_NORMALEXIT 0x0001
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
48 #define DRVEA_ABNORMALEXIT 0x0002
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
49
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
50 #define DRV_SUCCESS 0x0001
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
51 #define DRV_FAILURE 0x0000
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
52
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
53 #define GND_FIRSTINSTANCEONLY 0x00000001
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
54
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
55 #define GND_FORWARD 0x00000000
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
56 #define GND_REVERSE 0x00000002
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
57
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
58 typedef struct {
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
59 DWORD dwDCISize;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
60 LPCSTR lpszDCISectionName;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
61 LPCSTR lpszDCIAliasName;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
62 } DRVCONFIGINFO16, *LPDRVCONFIGINFO16;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
63
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
64 typedef struct {
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
65 DWORD dwDCISize;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
66 LPCWSTR lpszDCISectionName;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
67 LPCWSTR lpszDCIAliasName;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
68 } DRVCONFIGINFO, *LPDRVCONFIGINFO;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
69
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
70
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
71 /* GetDriverInfo16 references this structure, so this a struct defined
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
72 * in the Win16 API.
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
73 * GetDriverInfo has been deprecated in Win32.
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
74 */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
75 typedef struct
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
76 {
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
77 UINT16 length;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
78 HDRVR16 hDriver;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
79 HINSTANCE16 hModule;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
80 CHAR szAliasName[128];
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
81 } DRIVERINFOSTRUCT16, *LPDRIVERINFOSTRUCT16;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
82
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
83 LRESULT WINAPI DefDriverProc16(DWORD dwDevID, HDRVR16 hDriv, UINT16 wMsg,
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
84 LPARAM dwParam1, LPARAM dwParam2);
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
85 LRESULT WINAPI DefDriverProc(DWORD dwDriverIdentifier, HDRVR hdrvr,
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
86 UINT Msg, LPARAM lParam1, LPARAM lParam2);
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
87 HDRVR16 WINAPI OpenDriver16(LPCSTR szDriverName, LPCSTR szSectionName,
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
88 LPARAM lParam2);
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
89 HDRVR WINAPI OpenDriverA(LPCSTR szDriverName, LPCSTR szSectionName,
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
90 LPARAM lParam2);
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
91 HDRVR WINAPI OpenDriverW(LPCWSTR szDriverName, LPCWSTR szSectionName,
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
92 LPARAM lParam2);
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
93 #define OpenDriver WINELIB_NAME_AW(OpenDriver)
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
94 LRESULT WINAPI CloseDriver16(HDRVR16 hDriver, LPARAM lParam1, LPARAM lParam2);
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
95 LRESULT WINAPI CloseDriver(HDRVR hDriver, LPARAM lParam1, LPARAM lParam2);
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
96 LRESULT WINAPI SendDriverMessage16( HDRVR16 hDriver, UINT16 message,
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
97 LPARAM lParam1, LPARAM lParam2 );
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
98 LRESULT WINAPI SendDriverMessage( HDRVR hDriver, UINT message,
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
99 LPARAM lParam1, LPARAM lParam2 );
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
100 HMODULE16 WINAPI GetDriverModuleHandle16(HDRVR16 hDriver);
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
101 HMODULE WINAPI GetDriverModuleHandle(HDRVR hDriver);
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
102
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
103 DWORD WINAPI GetDriverFlags( HDRVR hDriver );
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
104 #ifdef __WINE__
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
105 /* this call (GetDriverFlags) is not documented, nor the flags returned.
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
106 * here are Wine only definitions
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
107 */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
108 #define WINE_GDF_EXIST 0x80000000
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
109 #define WINE_GDF_16BIT 0x10000000
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
110 #endif
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
111
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
112 #endif /* __WINE_DRIVER_H */