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 <setupapi.h> 18 #include <stdlib.h> 19 #include <strsafe.h> 20 21 #include "resource.h" 22 23 #define CONST_STR_LEN(str) (_countof(str) - 1) 24 25 //typedef LONG (CALLBACK *APPLET_PROC)(VOID); 26 27 typedef struct _APPLET 28 { 29 UINT idIcon; 30 UINT idName; 31 UINT idDescription; 32 APPLET_PROC AppletProc; 33 } APPLET, *PAPPLET; 34 35 extern HINSTANCE hApplet; 36 37 38 #define DRVM_MAPPER 0x2000 39 #define DRVM_MAPPER_PREFERRED_GET (DRVM_MAPPER + 21) 40 #define DRVM_MAPPER_PREFERRED_SET (DRVM_MAPPER + 22) 41 42 #define VOLUME_MIN 0 43 #define VOLUME_MAX 500 44 #define VOLUME_TICFREQ 50 45 #define VOLUME_PAGESIZE 100 46 47 /* main.c */ 48 49 VOID 50 InitPropSheetPage( 51 PROPSHEETPAGEW *psp, 52 WORD idDlg, 53 DLGPROC DlgProc); 54 55 LONG APIENTRY 56 MmSysApplet(HWND hwnd, 57 UINT uMsg, 58 LPARAM wParam, 59 LPARAM lParam); 60 61 /* sounds.c */ 62 63 INT_PTR 64 CALLBACK 65 SoundsDlgProc(HWND hwndDlg, 66 UINT uMsg, 67 WPARAM wParam, 68 LPARAM lParam); 69 70 /* volume.c */ 71 72 INT_PTR CALLBACK 73 VolumeDlgProc(HWND hwndDlg, 74 UINT uMsg, 75 WPARAM wParam, 76 LPARAM lParam); 77 78 /* voice.c */ 79 80 INT_PTR CALLBACK 81 VoiceDlgProc(HWND hwndDlg, 82 UINT uMsg, 83 WPARAM wParam, 84 LPARAM lParam); 85 86 /* audio.c */ 87 88 INT_PTR CALLBACK 89 AudioDlgProc(HWND hwndDlg, 90 UINT uMsg, 91 WPARAM wParam, 92 LPARAM lParam); 93 94 /* speakervolume.c */ 95 96 INT_PTR 97 SpeakerVolume(HWND hwndDlg); 98 99 #endif /* _MMSYS_H */ 100