mirror of
https://github.com/reactos/reactos.git
synced 2024-11-19 05:22:59 +00:00
781c247bd3
- Use Unicode (WCHAR) instead of TCHAR - Code formatting - Use string safe functions - Close handles after calling `CreateProcess` - Save sound path as `REG_EXPAND_SZ` only if the path contains '%' character, like Windows does - Fix `wcsdup` leaks Reviewed-by: Mark Jansen <mark.jansen@reactos.org> Reviewed-by: Hermès Bélusca-Maïto <hermes.belusca-maito@reactos.org> Reviewed-by: Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com> Reviewed-by: Stanislav Motylkov <x86corez@gmail.com>
44 lines
1.4 KiB
C
44 lines
1.4 KiB
C
/*
|
|
*
|
|
* PROJECT: ReactOS Multimedia Control Panel
|
|
* FILE: dll/cpl/mmsys/voice.c
|
|
* PURPOSE: ReactOS Multimedia Control Panel
|
|
* PROGRAMMER: Thomas Weidenmueller <w3seek@reactos.com>
|
|
* Johannes Anderwald <janderwald@reactos.com>
|
|
* Dmitry Chapyshev <dmitry@reactos.org>
|
|
*/
|
|
|
|
#include "mmsys.h"
|
|
|
|
/* Voice property page dialog callback */
|
|
INT_PTR CALLBACK
|
|
VoiceDlgProc(HWND hwndDlg,
|
|
UINT uMsg,
|
|
WPARAM wParam,
|
|
LPARAM lParam)
|
|
{
|
|
UNREFERENCED_PARAMETER(lParam);
|
|
UNREFERENCED_PARAMETER(wParam);
|
|
switch (uMsg)
|
|
{
|
|
case WM_INITDIALOG:
|
|
{
|
|
UINT NumWavOut;
|
|
|
|
NumWavOut = waveOutGetNumDevs();
|
|
if (!NumWavOut)
|
|
{
|
|
EnableWindow(GetDlgItem(hwndDlg, IDC_DEVICE_VOICE_LIST), FALSE);
|
|
EnableWindow(GetDlgItem(hwndDlg, IDC_DEVICE_VOICE_REC_LIST), FALSE);
|
|
EnableWindow(GetDlgItem(hwndDlg, IDC_VOLUME4_BTN), FALSE);
|
|
EnableWindow(GetDlgItem(hwndDlg, IDC_ADV4_BTN), FALSE);
|
|
EnableWindow(GetDlgItem(hwndDlg, IDC_VOLUME5_BTN), FALSE);
|
|
EnableWindow(GetDlgItem(hwndDlg, IDC_ADV5_BTN), FALSE);
|
|
EnableWindow(GetDlgItem(hwndDlg, IDC_TEST_HARDWARE), FALSE);
|
|
}
|
|
}
|
|
break;
|
|
}
|
|
|
|
return FALSE;
|
|
}
|