ReactOS 0.4.16-dev-91-g764881a
entry.c File Reference
#include "mmdrv.h"
#include <debug.h>
Include dependency graph for entry.c:

Go to the source code of this file.

Macros

#define NDEBUG
 

Functions

LONG WINAPI DriverProc (DWORD driver_id, HANDLE driver_handle, UINT message, LONG parameter1, LONG parameter2)
 

Macro Definition Documentation

◆ NDEBUG

#define NDEBUG

Definition at line 14 of file entry.c.

Function Documentation

◆ DriverProc()

LONG WINAPI DriverProc ( DWORD  driver_id,
HANDLE  driver_handle,
UINT  message,
LONG  parameter1,
LONG  parameter2 
)

Definition at line 28 of file entry.c.

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}
LRESULT WINAPI DefDriverProc(DWORD_PTR dwDriverIdentifier, HDRVR hDrv, UINT Msg, LPARAM lParam1, LPARAM lParam2)
Definition: driver.c:554
#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
#define L(x)
Definition: ntvdm.h:50
#define DPRINT
Definition: sndvol32.h:73
Definition: tftpd.h:60