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 53 LONG APIENTRY 54 MmSysApplet(HWND hwnd, 55 UINT uMsg, 56 LPARAM wParam, 57 LPARAM lParam); 58 59 /* sounds.c */ 60 61 INT_PTR 62 CALLBACK 63 SoundsDlgProc(HWND hwndDlg, 64 UINT uMsg, 65 WPARAM wParam, 66 LPARAM lParam); 67 68 /* volume.c */ 69 70 INT_PTR CALLBACK 71 VolumeDlgProc(HWND hwndDlg, 72 UINT uMsg, 73 WPARAM wParam, 74 LPARAM lParam); 75 76 /* voice.c */ 77 78 INT_PTR CALLBACK 79 VoiceDlgProc(HWND hwndDlg, 80 UINT uMsg, 81 WPARAM wParam, 82 LPARAM lParam); 83 84 /* audio.c */ 85 86 INT_PTR CALLBACK 87 AudioDlgProc(HWND hwndDlg, 88 UINT uMsg, 89 WPARAM wParam, 90 LPARAM lParam); 91 92 /* speakervolume.c */ 93 94 INT_PTR 95 SpeakerVolume(HWND hwndDlg); 96 97 #endif /* _MMSYS_H */ 98