ReactOS
0.4.16-dev-424-ge4748fe
Toggle main menu visibility
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
Functions
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
Variables
_
c
d
e
f
g
h
i
l
n
o
p
s
t
u
x
Typedefs
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
x
Enumerations
_
c
d
f
i
l
m
o
p
s
t
w
x
Enumerator
a
b
c
d
e
f
g
h
i
m
n
o
p
r
s
t
u
v
w
x
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
h
i
k
l
m
n
o
p
r
s
t
u
v
w
z
Enumerator
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Related Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
v
x
Files
File List
File Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Examples
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
27
LONG
WINAPI
28
DriverProc
(
29
DWORD
driver_id,
30
HANDLE
driver_handle,
31
UINT
message
,
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
66
case
DRV_QUERYCONFIGURE
:
67
DPRINT
(
"DRV_QUERYCONFIGURE\n"
);
68
return
0
L
;
69
70
case
DRV_CONFIGURE
:
71
DPRINT
(
"DRV_CONFIGURE\n"
);
72
return
0
L
;
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
}
DriverProc
LONG WINAPI DriverProc(DWORD driver_id, HANDLE driver_handle, UINT message, LONG parameter1, LONG parameter2)
Definition:
entry.c:28
DefDriverProc
LRESULT WINAPI DefDriverProc(DWORD_PTR dwDriverIdentifier, HDRVR hDrv, UINT Msg, LPARAM lParam1, LPARAM lParam2)
Definition:
driver.c:554
DWORD
unsigned long DWORD
Definition:
ntddk_ex.h:95
DRV_LOAD
#define DRV_LOAD(x)
void
Definition:
nsiface.idl:2307
mmdrv.h
DRV_CLOSE
#define DRV_CLOSE
Definition:
mmsystem.h:122
DRV_QUERYCONFIGURE
#define DRV_QUERYCONFIGURE
Definition:
mmsystem.h:126
DRVCNF_RESTART
#define DRVCNF_RESTART
Definition:
mmsystem.h:135
DRV_ENABLE
#define DRV_ENABLE
Definition:
mmsystem.h:120
DRV_CONFIGURE
#define DRV_CONFIGURE
Definition:
mmsystem.h:125
DRV_OPEN
#define DRV_OPEN
Definition:
mmsystem.h:121
DRV_INSTALL
#define DRV_INSTALL
Definition:
mmsystem.h:127
DRV_FREE
#define DRV_FREE
Definition:
mmsystem.h:124
DRV_DISABLE
#define DRV_DISABLE
Definition:
mmsystem.h:123
UINT
unsigned int UINT
Definition:
ndis.h:50
L
#define L(x)
Definition:
ntvdm.h:50
LONG
long LONG
Definition:
pedump.c:60
DPRINT
#define DPRINT
Definition:
sndvol32.h:73
message
Definition:
tftpd.h:60
WINAPI
#define WINAPI
Definition:
msvc.h:6
dll
win32
mmdrv
entry.c
Generated on Mon Jan 6 2025 06:06:30 for ReactOS by
1.9.6