source: trunk/src/winmm/driver.cpp@ 1036

Last change on this file since 1036 was 588, checked in by phaller, 26 years ago

Add: added ODINWRAP support for WINMM

File size: 7.1 KB
Line 
1/* $Id: driver.cpp,v 1.4 1999-08-19 18:46:04 phaller Exp $ */
2
3/*
4 * Driver multimedia apis
5 *
6 * Copyright 1998 Patrick Haller
7 *
8 *
9 * Project Odin Software License can be found in LICENSE.TXT
10 *
11 */
12
13
14/****************************************************************************
15 * Includes *
16 ****************************************************************************/
17
18#include <os2win.h>
19#include <mmsystem.h>
20#include <odinwrap.h>
21#include <string.h>
22#include <misc.h>
23#include <unicode.h>
24
25#include "winmm.h"
26#include "os2timer.h"
27
28ODINDEBUGCHANNEL(WINMM-DRIVER)
29
30
31/*****************************************************************************
32 * Sends the specifiedmessage to the installable driver
33 * Parameters: HDRVR hDrvr
34 * UINT msg
35 * LONG lParam1
36 * LONG lParam2
37 * Variables :
38 * Result : API returncode
39 * Remark :
40 * Status :
41 *
42 * Author : Patrick Haller [Tue, 1998/05/05 10:44]
43 *****************************************************************************/
44
45ODINFUNCTION4(LRESULT, SendDriverMessage,
46 HDRVR, hdrvr,
47 UINT, msg,
48 LONG, lParam1,
49 LONG, lParam2)
50{
51 dprintf(("WINMM: SendDriverMessage not implemented.\n"));
52 return 0; /* unsuccessful return */
53}
54
55
56/*****************************************************************************
57 * Opens an instance of an installable driver and initializes
58 * the instance using either the driver's default settings or a
59 * driver-specific value.
60 * Parameters: LPCWSTR lpDriverName
61 * LPCWSTR lpSectionName
62 * LONG lParam
63 * Variables :
64 * Result : API returncode
65 * Remark :
66 * Status :
67 *
68 * Author : Patrick Haller [Tue, 1998/05/05 10:44]
69 *****************************************************************************/
70
71ODINFUNCTION3(HDRVR, OpenDriver,
72 LPCWSTR, lpDriverName,
73 LPCWSTR, lpSectionName,
74 LONG, lParam)
75{
76 dprintf(("WINMM: OpenDriver not implemented.\n"));
77 return 0; /* unsuccessful return */
78}
79
80
81/*****************************************************************************
82 * Opens an instance of an installable driver and initializes
83 * the instance using either the driver's default settings or a
84 * driver-specific value.
85 * Parameters: LPCTSTR lpDriverName
86 * LPCTSTR lpSectionName
87 * LONG lParam
88 * Variables :
89 * Result : API returncode
90 * Remark :
91 * Status :
92 *
93 * Author : Patrick Haller [Tue, 1998/05/05 10:44]
94 *****************************************************************************/
95
96ODINFUNCTION3(HDRVR, OpenDriverA,
97 LPTSTR, lpDriverName,
98 LPTSTR, lpSectionName,
99 LONG, lParam)
100{
101 dprintf(("WINMM: OpenDriverA not implemented.\n"));
102 return 0; /* unsuccessful return */
103}
104
105
106
107/*****************************************************************************
108 * Closes an installable driver.
109 * Parameters: HDRVR hDrvr
110 * LONG lParam1
111 * LONG lParam2
112 * Variables :
113 * Result :
114 * Remark :
115 * Status :
116 *
117 * Author : Patrick Haller [Tue, 1998/05/05 10:44]
118 *****************************************************************************/
119
120ODINFUNCTION3(LRESULT, CloseDriver,
121 HDRVR, hDrvr,
122 LONG, lParam1,
123 LONG, lParam2)
124{
125 dprintf(("WINMM: CloseDriver not implemented.\n"));
126 return 0; /* unsuccessful return */
127}
128
129
130/*****************************************************************************
131 * Provides default processing for anymessages not processed by
132 * an installable driver.
133 * Parameters: DWORD dwDriverID
134 * HDRVR hDrvr
135 * UINT msg
136 * LONG lParam1
137 * LONG lParam2
138 * Variables :
139 * Result :
140 * Remark :
141 * Status :
142 *
143 * Author : Patrick Haller [Tue, 1998/05/05 10:44]
144 *****************************************************************************/
145
146ODINFUNCTION5(LRESULT, DefDriverProc,
147 DWORD, dwDriverID,
148 HDRVR, hDrvr,
149 UINT, msg,
150 LONG, lParam1,
151 LONG, lParam2)
152{
153 dprintf(("WINMM: DefDriverProc not implemented.\n"));
154 return 0; /* unsuccessful return */
155}
156
157
158/*****************************************************************************
159 * Parameters: DWORD dwCallback
160 * DWORD dwFlags
161 * HDRVR hDrvr
162 * DWORD msg
163 * DWORD dwUser
164 * DWORD dwParam1
165 * DWORD dwParam2
166 * Variables :
167 * Result :
168 * Remark :
169 * Status :
170 *
171 * Author : Patrick Haller [Tue, 1998/05/05 10:44]
172 *****************************************************************************/
173
174ODINFUNCTION7(LRESULT, DriverCallback,
175 DWORD, dwCallback,
176 DWORD, dwFlags,
177 HDRVR, hDrvr,
178 DWORD, msg,
179 DWORD, dwUser,
180 DWORD, dwParam1,
181 DWORD, dwParam2)
182{
183 dprintf(("WINMM: DriverCallback not implemented.\n"));
184 return FALSE; /* unsuccessful return */
185}
186
187
188/*****************************************************************************
189 * Purpose : Retrieves the instance handle of the module that contains the
190 * installable driver.
191 * Parameters: HDRVR hDriver
192 * Variables :
193 * Result :
194 * Remark :
195 * Status :
196 *
197 * Author : Patrick Haller [Tue, 1998/05/05 10:44]
198 *****************************************************************************/
199
200ODINFUNCTION1(HMODULE, DrvGetModuleHandle,
201 HDRVR, hDriver)
202{
203 dprintf(("WINMM: DrvGetModuleHandle not implemented.\n"));
204 return 0; /* unsuccessful return */
205}
206
207
208/*****************************************************************************
209 * Sends the specified message to the installable driver
210 * Parameters: HDRVR hDrvr
211 * UINT msg
212 * LONG lParam1
213 * LONG lParam2
214 * Variables :
215 * Result : API returncode
216 * Remark : Ehm, what's the difference to SendDriverMessage() ?
217 * Status :
218 *
219 * Author : Patrick Haller [Tue, 1998/05/05 10:44]
220 *****************************************************************************/
221
222ODINFUNCTION4(LRESULT, DrvSendMessage,
223 HDRVR, hdrvr,
224 UINT, msg,
225 LONG, lParam1,
226 LONG, lParam2)
227{
228 dprintf(("WINMM: DrvSendMessage not implemented.\n"));
229 return 0; /* unsuccessful return */
230}
231
232
233/*****************************************************************************
234 * Retrieves the instance handle of the module that contains the
235 * installable driver.
236 * Parameters: HDRVR hDriver
237 * Variables :
238 * Result :
239 * Remark : What's the difference to DrvGetModuleHandle() ?
240 * Status :
241 *
242 * Author : Patrick Haller [Tue, 1998/05/05 10:44]
243 *****************************************************************************/
244
245ODINFUNCTION1(HMODULE, GetDriverModuleHandle,
246 HDRVR, hDriver)
247{
248 dprintf(("WINMM: GetDriverModuleHandle not implemented.\n"));
249 return 0; /* unsuccessful return */
250}
251
Note: See TracBrowser for help on using the repository browser.