Changeset 588 for trunk/src/winmm/driver.cpp
- Timestamp:
- Aug 19, 1999, 8:46:54 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/winmm/driver.cpp
r95 r588 1 /* $Id: driver.cpp,v 1. 3 1999-06-10 16:24:33phaller Exp $ */1 /* $Id: driver.cpp,v 1.4 1999-08-19 18:46:04 phaller Exp $ */ 2 2 3 3 /* … … 10 10 * 11 11 */ 12 13 14 /**************************************************************************** 15 * Includes * 16 ****************************************************************************/ 17 12 18 #include <os2win.h> 13 19 #include <mmsystem.h> 14 20 #include <odinwrap.h> 15 21 #include <string.h> 16 22 #include <misc.h> … … 20 26 #include "os2timer.h" 21 27 22 23 /***************************************************************************** 24 * Name : LRESULT WIN32API SendDriverMessage 25 * Purpose : Sends the specified message to the installable driver 28 ODINDEBUGCHANNEL(WINMM-DRIVER) 29 30 31 /***************************************************************************** 32 * Sends the specifiedmessage to the installable driver 26 33 * Parameters: HDRVR hDrvr 27 34 * UINT msg … … 36 43 *****************************************************************************/ 37 44 38 LRESULT WIN32API SendDriverMessage(HDRVR hdrvr, 39 UINT msg, 40 LONG lParam1, 41 LONG lParam2) 42 { 43 dprintf(("WINMM: SendDriverMessage(%08x,%08x,%08x,%08x) not implemented.\n", 44 hdrvr, 45 msg, 46 lParam1, 47 lParam2)); 48 49 return 0; /* unsuccessful return */ 50 } 51 52 53 /***************************************************************************** 54 * Name : HDRVR WIN32API OpenDriver 55 * Purpose : Opens an instance of an installable driver and initializes 45 ODINFUNCTION4(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 56 58 * the instance using either the driver's default settings or a 57 59 * driver-specific value. … … 67 69 *****************************************************************************/ 68 70 69 HDRVR WIN32API OpenDriver(LPCWSTR lpDriverName, 70 LPCWSTR lpSectionName, 71 LONG lParam) 72 { 73 dprintf(("WINMM: OpenDriver(%s,%s,%08x) not implemented.\n", 74 lpDriverName, 75 lpSectionName, 76 lParam)); 77 78 return 0; /* unsuccessful return */ 79 } 80 81 82 /***************************************************************************** 83 * Name : HDRVR WIN32API OpenDriverA 84 * Purpose : Opens an instance of an installable driver and initializes 71 ODINFUNCTION3(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 85 83 * the instance using either the driver's default settings or a 86 84 * driver-specific value. … … 96 94 *****************************************************************************/ 97 95 98 HDRVR WIN32API OpenDriverA(LPTSTR lpDriverName, 99 LPTSTR lpSectionName, 100 LONG lParam) 101 { 102 dprintf(("WINMM: OpenDriverA(%s,%s,%08x) not implemented.\n", 103 lpDriverName, 104 lpSectionName, 105 lParam)); 106 107 return 0; /* unsuccessful return */ 108 } 109 110 111 112 /***************************************************************************** 113 * Name : HDRVR WIN32API CloseDriver 114 * Purpose : Closes an installable driver. 96 ODINFUNCTION3(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. 115 109 * Parameters: HDRVR hDrvr 116 110 * LONG lParam1 … … 124 118 *****************************************************************************/ 125 119 126 LRESULT WIN32API CloseDriver(HDRVR hDrvr, 127 LONG lParam1, 128 LONG lParam2) 129 { 130 dprintf(("WINMM: CloseDriver(%08x,%08x,%08x) not implemented.\n", 131 hDrvr, 132 lParam1, 133 lParam2)); 134 135 return 0; /* unsuccessful return */ 136 } 137 138 139 /***************************************************************************** 140 * Name : LRESULT WIN32API DefDriverProc 141 * Purpose : Provides default processing for any messages not processed by 120 ODINFUNCTION3(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 142 132 * an installable driver. 143 133 * Parameters: DWORD dwDriverID … … 154 144 *****************************************************************************/ 155 145 156 LRESULT WIN32API DefDriverProc(DWORD dwDriverID, 157 HDRVR hDrvr, 158 UINT msg, 159 LONG lParam1, 160 LONG lParam2) 161 { 162 dprintf(("WINMM: DefDriverProc(%08x,%08x,%08x,%08x,%08x) not implemented.\n", 163 dwDriverID, 164 hDrvr, 165 msg, 166 lParam1, 167 lParam2)); 168 169 return 0; /* unsuccessful return */ 170 } 171 172 173 /***************************************************************************** 174 * Name : LRESULT WIN32API DriverCallback 175 * Purpose : Calls a callback function, sends a message to a window, or 176 * unblocks a thread. 146 ODINFUNCTION5(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 /***************************************************************************** 177 159 * Parameters: DWORD dwCallback 178 160 * DWORD dwFlags … … 190 172 *****************************************************************************/ 191 173 192 LRESULT WIN32API DriverCallback(DWORD dwCallback, 193 DWORD dwFlags, 194 HDRVR hDrvr, 195 DWORD msg, 196 DWORD dwUser, 197 DWORD dwParam1, 198 DWORD dwParam2) 199 { 200 dprintf(("WINMM: DriverCallback(%08x,%08x,%08x,%08x,%08x,%08x,%08x) not implemented.\n", 201 dwCallback, 202 dwFlags, 203 hDrvr, 204 msg, 205 dwUser, 206 dwParam1, 207 dwParam2)); 208 174 ODINFUNCTION7(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")); 209 184 return FALSE; /* unsuccessful return */ 210 185 } … … 212 187 213 188 /***************************************************************************** 214 * Name : HMODULE WIN32API DrvGetModuleHandle215 189 * Purpose : Retrieves the instance handle of the module that contains the 216 190 * installable driver. … … 224 198 *****************************************************************************/ 225 199 226 HMODULE WIN32API DrvGetModuleHandle(HDRVR hDriver) 227 { 228 dprintf(("WINMM: DrvGetModuleHandle(%08x) not implemented.\n", 229 hDriver)); 230 231 return 0; /* unsuccessful return */ 232 } 233 234 235 /***************************************************************************** 236 * Name : LRESULT WIN32API DrvSendMessage 237 * Purpose : Sends the specified message to the installable driver 200 ODINFUNCTION1(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 238 210 * Parameters: HDRVR hDrvr 239 211 * UINT msg … … 248 220 *****************************************************************************/ 249 221 250 LRESULT WIN32API DrvSendMessage(HDRVR hdrvr, 251 UINT msg, 252 LONG lParam1, 253 LONG lParam2) 254 { 255 dprintf(("WINMM: DrvSendMessage(%08x,%08x,%08x,%08x) not implemented.\n", 256 hdrvr, 257 msg, 258 lParam1, 259 lParam2)); 260 261 return 0; /* unsuccessful return */ 262 } 263 264 265 /***************************************************************************** 266 * Name : HMODULE WIN32API GetDriverModuleHandle 267 * Purpose : Retrieves the instance handle of the module that contains the 222 ODINFUNCTION4(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 268 235 * installable driver. 269 236 * Parameters: HDRVR hDriver … … 276 243 *****************************************************************************/ 277 244 278 HMODULE WIN32API GetDriverModuleHandle(HDRVR hDriver) 279 { 280 dprintf(("WINMM: GetDriverModuleHandle(%08x) not implemented.\n", 281 hDriver));282 283 return 0; /* unsuccessful return */ 284 } 245 ODINFUNCTION1(HMODULE, GetDriverModuleHandle, 246 HDRVR, hDriver) 247 { 248 dprintf(("WINMM: GetDriverModuleHandle not implemented.\n")); 249 return 0; /* unsuccessful return */ 250 } 251
Note:
See TracChangeset
for help on using the changeset viewer.