Ignore:
Timestamp:
Aug 19, 1999, 8:46:54 PM (26 years ago)
Author:
phaller
Message:

Add: added ODINWRAP support for WINMM

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:33 phaller Exp $ */
     1/* $Id: driver.cpp,v 1.4 1999-08-19 18:46:04 phaller Exp $ */
    22
    33/*
     
    1010 *
    1111 */
     12
     13
     14/****************************************************************************
     15 * Includes                                                                 *
     16 ****************************************************************************/
     17
    1218#include <os2win.h>
    1319#include <mmsystem.h>
    14 
     20#include <odinwrap.h>
    1521#include <string.h>
    1622#include <misc.h>
     
    2026#include "os2timer.h"
    2127
    22 
    23 /*****************************************************************************
    24  * Name      : LRESULT WIN32API SendDriverMessage
    25  * Purpose   : Sends the specified message to the installable driver
     28ODINDEBUGCHANNEL(WINMM-DRIVER)
     29
     30
     31/*****************************************************************************
     32 *             Sends the specifiedmessage to the installable driver
    2633 * Parameters: HDRVR hDrvr
    2734 *             UINT  msg
     
    3643 *****************************************************************************/
    3744
    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
     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
    5658 *             the instance using either the driver's default settings or a
    5759 *             driver-specific value.
     
    6769 *****************************************************************************/
    6870
    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
     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
    8583 *             the instance using either the driver's default settings or a
    8684 *             driver-specific value.
     
    9694 *****************************************************************************/
    9795
    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.
     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.
    115109 * Parameters: HDRVR hDrvr
    116110 *             LONG  lParam1
     
    124118 *****************************************************************************/
    125119
    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
     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
    142132 *             an installable driver.
    143133 * Parameters: DWORD dwDriverID
     
    154144 *****************************************************************************/
    155145
    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.
     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/*****************************************************************************
    177159 * Parameters: DWORD dwCallback
    178160 *             DWORD dwFlags
     
    190172 *****************************************************************************/
    191173
    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 
     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"));
    209184  return FALSE; /* unsuccessful return */
    210185}
     
    212187
    213188/*****************************************************************************
    214  * Name      : HMODULE WIN32API DrvGetModuleHandle
    215189 * Purpose   : Retrieves the instance handle of the module that contains the
    216190 *             installable driver.
     
    224198 *****************************************************************************/
    225199
    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
     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
    238210 * Parameters: HDRVR hDrvr
    239211 *             UINT  msg
     
    248220 *****************************************************************************/
    249221
    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
     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
    268235 *             installable driver.
    269236 * Parameters: HDRVR hDriver
     
    276243 *****************************************************************************/
    277244
    278 HMODULE WIN32API GetDriverModuleHandle(HDRVR hDriver)
    279 {
    280   dprintf(("WINMM: GetDriverModuleHandle(%08x) not implemented.\n",
    281            hDriver));
    282 
    283   return 0; /* unsuccessful return */
    284 }
     245ODINFUNCTION1(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.