31 WCHAR szNoDevices[256];
54 UINT DefaultIndex = 0;
63 for (uIndex = 0; uIndex < DevsNum; uIndex++)
95 UINT DefaultIndex = 0;
105 for (uIndex = 0; uIndex < DevsNum; uIndex++)
137 UINT DefaultIndex = 0;
146 for (uIndex = 0; uIndex < DevsNum; uIndex++)
178 if (TextLen >
_countof(SelectedDevice))
197 L"Software\\Microsoft\\Multimedia\\Sound Mapper",
205 L"Software\\Microsoft\\Multimedia\\Sound Mapper",
213 L"Software\\Microsoft\\Windows\\CurrentVersion\\Multimedia\\MIDIMap",
278 if (pGlobalData->bNoAudioOut)
285 if (pGlobalData->bNoAudioIn)
292 if (pGlobalData->bNoMIDIOut)
#define RegCloseKey(hKey)
struct _GLOBAL_DATA GLOBAL_DATA
VOID UpdateRegistryString(HWND hwnd, INT ctrl, LPCWSTR key, LPCWSTR value)
VOID InitAudioDlg(HWND hwnd, PGLOBAL_DATA pGlobalData)
static UINT GetDevNum(HWND hControl, DWORD Id)
struct _GLOBAL_DATA * PGLOBAL_DATA
INT_PTR CALLBACK AudioDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
VOID SaveAudioDlg(HWND hwnd, PGLOBAL_DATA pGlobalData)
#define IDC_DEFAULT_DEV_CHECKBOX
#define IDC_DEVICE_MIDI_LIST
#define IDC_DEVICE_REC_LIST
#define IDC_DEVICE_PLAY_LIST
LONG WINAPI RegCreateKeyExW(_In_ HKEY hKey, _In_ LPCWSTR lpSubKey, _In_ DWORD Reserved, _In_opt_ LPWSTR lpClass, _In_ DWORD dwOptions, _In_ REGSAM samDesired, _In_opt_ LPSECURITY_ATTRIBUTES lpSecurityAttributes, _Out_ PHKEY phkResult, _Out_opt_ LPDWORD lpdwDisposition)
LONG WINAPI RegOpenKeyExW(HKEY hKey, LPCWSTR lpSubKey, DWORD ulOptions, REGSAM samDesired, PHKEY phkResult)
LONG WINAPI RegSetValueExW(_In_ HKEY hKey, _In_ LPCWSTR lpValueName, _In_ DWORD Reserved, _In_ DWORD dwType, _In_ CONST BYTE *lpData, _In_ DWORD cbData)
LONG WINAPI RegQueryValueExW(_In_ HKEY hkeyorg, _In_ LPCWSTR name, _In_ LPDWORD reserved, _In_ LPDWORD type, _In_ LPBYTE data, _In_ LPDWORD count)
#define HeapFree(x, y, z)
BOOL WINAPI DECLSPEC_HOTPATCH CreateProcessW(LPCWSTR lpApplicationName, LPWSTR lpCommandLine, LPSECURITY_ATTRIBUTES lpProcessAttributes, LPSECURITY_ATTRIBUTES lpThreadAttributes, BOOL bInheritHandles, DWORD dwCreationFlags, LPVOID lpEnvironment, LPCWSTR lpCurrentDirectory, LPSTARTUPINFOW lpStartupInfo, LPPROCESS_INFORMATION lpProcessInformation)
_CRTIMP size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
#define MIXER_OBJECTF_MIDIOUT
#define MIXER_OBJECTF_WAVEOUT
#define MIXER_OBJECTF_WAVEIN
PSDBQUERYRESULT_VISTA PVOID DWORD * dwSize
#define REG_OPTION_NON_VOLATILE
#define PropSheet_Changed(d, w)
_Check_return_ _CRTIMP int __cdecl _wcsicmp(_In_z_ const wchar_t *_Str1, _In_z_ const wchar_t *_Str2)
STRSAFEAPI StringCchPrintfW(STRSAFE_LPWSTR pszDest, size_t cchDest, STRSAFE_LPCWSTR pszFormat,...)
WCHAR szPname[MAXPNAMELEN]
WCHAR szPname[MAXPNAMELEN]
WCHAR szPname[MAXPNAMELEN]
#define STARTF_USESHOWWINDOW
UINT WINAPI midiOutGetNumDevs(void)
UINT WINAPI waveOutGetNumDevs(void)
UINT WINAPI waveOutGetDevCapsW(UINT_PTR uDeviceID, LPWAVEOUTCAPSW lpCaps, UINT uSize)
UINT WINAPI mixerGetID(HMIXEROBJ hmix, LPUINT lpid, DWORD fdwID)
UINT WINAPI waveInGetNumDevs(void)
UINT WINAPI midiOutGetDevCapsW(UINT_PTR uDeviceID, LPMIDIOUTCAPSW lpCaps, UINT uSize)
UINT WINAPI waveInGetDevCapsW(UINT_PTR uDeviceID, LPWAVEINCAPSW lpCaps, UINT uSize)
#define HKEY_CURRENT_USER
#define GetWindowLongPtrW
int WINAPI LoadStringW(_In_opt_ HINSTANCE hInstance, _In_ UINT uID, _Out_writes_to_(cchBufferMax, return+1) LPWSTR lpBuffer, _In_ int cchBufferMax)
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
BOOL WINAPI EnableWindow(_In_ HWND, _In_ BOOL)
HWND WINAPI GetParent(_In_ HWND)
#define SetWindowLongPtrW
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)