2014-02-05 18:17:27 +00:00
|
|
|
#ifndef _MMSYS_H
|
|
|
|
#define _MMSYS_H
|
|
|
|
|
2014-01-19 10:35:30 +00:00
|
|
|
#include <stdarg.h>
|
|
|
|
|
2013-01-24 23:00:42 +00:00
|
|
|
#define WIN32_NO_STATUS
|
|
|
|
#define _INC_WINDOWS
|
|
|
|
#define COM_NO_WINDOWS_H
|
2014-01-19 10:35:30 +00:00
|
|
|
|
2013-01-24 23:00:42 +00:00
|
|
|
#include <windef.h>
|
|
|
|
#include <winbase.h>
|
|
|
|
#include <winreg.h>
|
|
|
|
#include <wingdi.h>
|
|
|
|
#include <winuser.h>
|
|
|
|
#include <mmsystem.h>
|
2011-07-28 14:56:00 +00:00
|
|
|
#include <cpl.h>
|
|
|
|
#include <setupapi.h>
|
2021-09-13 01:33:14 +00:00
|
|
|
#include <stdlib.h>
|
2022-09-14 17:06:22 +00:00
|
|
|
#include <strsafe.h>
|
2014-01-19 10:35:30 +00:00
|
|
|
|
2011-07-28 14:56:00 +00:00
|
|
|
#include "resource.h"
|
2005-11-23 23:02:35 +00:00
|
|
|
|
2022-09-14 17:06:22 +00:00
|
|
|
#define CONST_STR_LEN(str) (_countof(str) - 1)
|
|
|
|
|
2005-11-23 23:02:35 +00:00
|
|
|
//typedef LONG (CALLBACK *APPLET_PROC)(VOID);
|
|
|
|
|
|
|
|
typedef struct _APPLET
|
|
|
|
{
|
2022-09-14 17:06:22 +00:00
|
|
|
UINT idIcon;
|
|
|
|
UINT idName;
|
|
|
|
UINT idDescription;
|
|
|
|
APPLET_PROC AppletProc;
|
2005-11-23 23:02:35 +00:00
|
|
|
} APPLET, *PAPPLET;
|
|
|
|
|
|
|
|
extern HINSTANCE hApplet;
|
|
|
|
|
|
|
|
|
2007-09-15 14:54:01 +00:00
|
|
|
#define DRVM_MAPPER 0x2000
|
2022-09-14 17:06:22 +00:00
|
|
|
#define DRVM_MAPPER_PREFERRED_GET (DRVM_MAPPER + 21)
|
|
|
|
#define DRVM_MAPPER_PREFERRED_SET (DRVM_MAPPER + 22)
|
2007-09-15 14:54:01 +00:00
|
|
|
|
2019-01-20 14:57:34 +00:00
|
|
|
#define VOLUME_MIN 0
|
|
|
|
#define VOLUME_MAX 500
|
|
|
|
#define VOLUME_TICFREQ 50
|
|
|
|
#define VOLUME_PAGESIZE 100
|
|
|
|
|
2005-11-23 23:02:35 +00:00
|
|
|
/* main.c */
|
|
|
|
|
|
|
|
VOID
|
2019-01-20 14:57:34 +00:00
|
|
|
InitPropSheetPage(
|
2022-09-14 17:06:22 +00:00
|
|
|
PROPSHEETPAGEW *psp,
|
2019-01-20 14:57:34 +00:00
|
|
|
WORD idDlg,
|
2019-01-20 20:59:45 +00:00
|
|
|
DLGPROC DlgProc);
|
2005-11-23 23:02:35 +00:00
|
|
|
|
|
|
|
LONG APIENTRY
|
|
|
|
MmSysApplet(HWND hwnd,
|
|
|
|
UINT uMsg,
|
2007-07-28 20:02:37 +00:00
|
|
|
LPARAM wParam,
|
|
|
|
LPARAM lParam);
|
2005-11-23 23:02:35 +00:00
|
|
|
|
2007-09-12 17:51:51 +00:00
|
|
|
/* sounds.c */
|
|
|
|
|
|
|
|
INT_PTR
|
|
|
|
CALLBACK
|
|
|
|
SoundsDlgProc(HWND hwndDlg,
|
2022-09-14 17:06:22 +00:00
|
|
|
UINT uMsg,
|
|
|
|
WPARAM wParam,
|
|
|
|
LPARAM lParam);
|
2007-09-12 17:51:51 +00:00
|
|
|
|
2007-09-15 14:54:01 +00:00
|
|
|
/* volume.c */
|
|
|
|
|
|
|
|
INT_PTR CALLBACK
|
|
|
|
VolumeDlgProc(HWND hwndDlg,
|
2022-09-14 17:06:22 +00:00
|
|
|
UINT uMsg,
|
|
|
|
WPARAM wParam,
|
|
|
|
LPARAM lParam);
|
2007-09-15 14:54:01 +00:00
|
|
|
|
2008-02-06 11:36:37 +00:00
|
|
|
/* voice.c */
|
|
|
|
|
|
|
|
INT_PTR CALLBACK
|
|
|
|
VoiceDlgProc(HWND hwndDlg,
|
|
|
|
UINT uMsg,
|
|
|
|
WPARAM wParam,
|
|
|
|
LPARAM lParam);
|
|
|
|
|
|
|
|
/* audio.c */
|
|
|
|
|
|
|
|
INT_PTR CALLBACK
|
|
|
|
AudioDlgProc(HWND hwndDlg,
|
|
|
|
UINT uMsg,
|
|
|
|
WPARAM wParam,
|
|
|
|
LPARAM lParam);
|
2007-09-12 17:51:51 +00:00
|
|
|
|
2019-01-20 14:57:34 +00:00
|
|
|
/* speakervolume.c */
|
|
|
|
|
|
|
|
INT_PTR
|
2019-01-20 20:59:45 +00:00
|
|
|
SpeakerVolume(HWND hwndDlg);
|
2019-01-20 14:57:34 +00:00
|
|
|
|
2014-02-05 18:17:27 +00:00
|
|
|
#endif /* _MMSYS_H */
|