ReactOS 0.4.15-dev-7934-g1dc8d80
entry.c
Go to the documentation of this file.
1/*
2 *
3 * COPYRIGHT: See COPYING in the top level directory
4 * PROJECT: ReactOS Multimedia
5 * FILE: dll/win32/mmdrv/entry.c
6 * PURPOSE: Multimedia User Mode Driver (DriverProc)
7 * PROGRAMMER: Andrew Greenwood
8 * UPDATE HISTORY:
9 * Jan 14, 2007: Created
10 */
11
12#include "mmdrv.h"
13
14#define NDEBUG
15#include <debug.h>
16
17/*
18 Nothing particularly special happens here.
19
20 Back in the days of Windows 3.1, we would do something more useful here,
21 as this is effectively the old-style equivalent of NT's "DriverEntry",
22 though far more primitive.
23
24 In summary, we just implement to satisfy the MME API (winmm) requirements.
25*/
26
29 DWORD driver_id,
30 HANDLE driver_handle,
32 LONG parameter1,
33 LONG parameter2)
34{
35 switch ( message )
36 {
37 case DRV_LOAD :
38 DPRINT("DRV_LOAD\n");
39 return 1L;
40
41 case DRV_FREE :
42 DPRINT("DRV_FREE\n");
43 return 1L;
44
45 case DRV_OPEN :
46 DPRINT("DRV_OPEN\n");
47 return 1L;
48
49 case DRV_CLOSE :
50 DPRINT("DRV_CLOSE\n");
51 return 1L;
52
53 case DRV_ENABLE :
54 DPRINT("DRV_ENABLE\n");
55 return 1L;
56
57 case DRV_DISABLE :
58 DPRINT("DRV_DISABLE\n");
59 return 1L;
60
61 /*
62 We don't provide configuration capabilities. This used to be
63 for things like I/O port, IRQ, DMA settings, etc.
64 */
65
67 DPRINT("DRV_QUERYCONFIGURE\n");
68 return 0L;
69
70 case DRV_CONFIGURE :
71 DPRINT("DRV_CONFIGURE\n");
72 return 0L;
73
74 case DRV_INSTALL :
75 DPRINT("DRV_INSTALL\n");
76 return DRVCNF_RESTART;
77 };
78
79 return DefDriverProc(driver_id,
80 driver_handle,
81 message,
82 parameter1,
83 parameter2);
84}
LONG WINAPI DriverProc(DWORD driver_id, HANDLE driver_handle, UINT message, LONG parameter1, LONG parameter2)
Definition: entry.c:28
LRESULT WINAPI DefDriverProc(DWORD_PTR dwDriverIdentifier, HDRVR hDrv, UINT Msg, LPARAM lParam1, LPARAM lParam2)
Definition: driver.c:554
unsigned long DWORD
Definition: ntddk_ex.h:95
#define DRV_LOAD(x)
#define DRV_CLOSE
Definition: mmsystem.h:122
#define DRV_QUERYCONFIGURE
Definition: mmsystem.h:126
#define DRVCNF_RESTART
Definition: mmsystem.h:135
#define DRV_ENABLE
Definition: mmsystem.h:120
#define DRV_CONFIGURE
Definition: mmsystem.h:125
#define DRV_OPEN
Definition: mmsystem.h:121
#define DRV_INSTALL
Definition: mmsystem.h:127
#define DRV_FREE
Definition: mmsystem.h:124
#define DRV_DISABLE
Definition: mmsystem.h:123
unsigned int UINT
Definition: ndis.h:50
#define L(x)
Definition: ntvdm.h:50
long LONG
Definition: pedump.c:60
#define DPRINT
Definition: sndvol32.h:71
Definition: tftpd.h:60
#define WINAPI
Definition: msvc.h:6