[MMSYS] Add the speaker volume dialog.
[reactos.git] / dll / cpl / mmsys / mmsys.h
1 #ifndef _MMSYS_H
2 #define _MMSYS_H
3
4 #include <stdarg.h>
5
6 #define WIN32_NO_STATUS
7 #define _INC_WINDOWS
8 #define COM_NO_WINDOWS_H
9
10 #include <windef.h>
11 #include <winbase.h>
12 #include <winreg.h>
13 #include <wingdi.h>
14 #include <winuser.h>
15 #include <mmsystem.h>
16 #include <cpl.h>
17 #include <tchar.h>
18 #include <setupapi.h>
19 #include <stdlib.h>
20
21 #include "resource.h"
22
23 //typedef LONG (CALLBACK *APPLET_PROC)(VOID);
24
25 typedef struct _APPLET
26 {
27 UINT idIcon;
28 UINT idName;
29 UINT idDescription;
30 APPLET_PROC AppletProc;
31 } APPLET, *PAPPLET;
32
33 extern HINSTANCE hApplet;
34
35
36 #define DRVM_MAPPER 0x2000
37 #define DRVM_MAPPER_PREFERRED_GET (DRVM_MAPPER+21)
38 #define DRVM_MAPPER_PREFERRED_SET (DRVM_MAPPER+22)
39
40 #define VOLUME_MIN 0
41 #define VOLUME_MAX 500
42 #define VOLUME_TICFREQ 50
43 #define VOLUME_PAGESIZE 100
44
45 /* main.c */
46
47 VOID
48 InitPropSheetPage(
49 PROPSHEETPAGE *psp,
50 WORD idDlg,
51 DLGPROC DlgProc,
52 LPARAM lParam);
53
54 LONG APIENTRY
55 MmSysApplet(HWND hwnd,
56 UINT uMsg,
57 LPARAM wParam,
58 LPARAM lParam);
59
60 /* sounds.c */
61
62 INT_PTR
63 CALLBACK
64 SoundsDlgProc(HWND hwndDlg,
65 UINT uMsg,
66 WPARAM wParam,
67 LPARAM lParam);
68
69 /* volume.c */
70
71 INT_PTR CALLBACK
72 VolumeDlgProc(HWND hwndDlg,
73 UINT uMsg,
74 WPARAM wParam,
75 LPARAM lParam);
76
77 /* voice.c */
78
79 INT_PTR CALLBACK
80 VoiceDlgProc(HWND hwndDlg,
81 UINT uMsg,
82 WPARAM wParam,
83 LPARAM lParam);
84
85 /* audio.c */
86
87 INT_PTR CALLBACK
88 AudioDlgProc(HWND hwndDlg,
89 UINT uMsg,
90 WPARAM wParam,
91 LPARAM lParam);
92
93 /* speakervolume.c */
94
95 INT_PTR
96 SpeakerVolume(HWND hwndDlg,
97 HMIXER hMixer);
98
99 #endif /* _MMSYS_H */