6285652e9b1b4ba4fb161928440e685b8c34b812
[reactos.git] / reactos / dll / win32 / mmdrv / entry.c
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
15 /*
16 Nothing particularly special happens here.
17
18 Back in the days of Windows 3.1, we would do something more useful here,
19 as this is effectively the old-style equivalent of NT's "DriverEntry",
20 though far more primitive.
21
22 In summary, we just implement to satisfy the MME API (winmm) requirements.
23 */
24
25 LONG WINAPI
26 DriverProc(
27 DWORD driver_id,
28 HANDLE driver_handle,
29 UINT message,
30 LONG parameter1,
31 LONG parameter2)
32 {
33 switch ( message )
34 {
35 case DRV_LOAD :
36 DPRINT("DRV_LOAD\n");
37 return 1L;
38
39 case DRV_FREE :
40 DPRINT("DRV_FREE\n");
41 return 1L;
42
43 case DRV_OPEN :
44 DPRINT("DRV_OPEN\n");
45 return 1L;
46
47 case DRV_CLOSE :
48 DPRINT("DRV_CLOSE\n");
49 return 1L;
50
51 case DRV_ENABLE :
52 DPRINT("DRV_ENABLE\n");
53 return 1L;
54
55 case DRV_DISABLE :
56 DPRINT("DRV_DISABLE\n");
57 return 1L;
58
59 /*
60 We don't provide configuration capabilities. This used to be
61 for things like I/O port, IRQ, DMA settings, etc.
62 */
63
64 case DRV_QUERYCONFIGURE :
65 DPRINT("DRV_QUERYCONFIGURE\n");
66 return 0L;
67
68 case DRV_CONFIGURE :
69 DPRINT("DRV_CONFIGURE\n");
70 return 0L;
71
72 case DRV_INSTALL :
73 DPRINT("DRV_INSTALL\n");
74 return DRVCNF_RESTART;
75 };
76
77 return DefDriverProc(driver_id,
78 driver_handle,
79 message,
80 parameter1,
81 parameter2);
82 }