#include "precomp.h"
#include <mment4.h>
#include <mmebuddy_debug.h>
Go to the source code of this file.
◆ DetectNt4SoundDevices()
Definition at line 151 of file detect.c.
156 SIZE_T DeviceNameLength = 0;
164 DeviceNameLength =
wcslen(BaseDeviceName);
static VOID FreeMemory(PCREATE_DATA Data)
_Inout_ PUSB_DEVICE_HANDLE DeviceHandle
UINT GetDigitCount(IN UINT Number)
#define VALIDATE_MMSYS_PARAMETER(parameter_condition)
#define ZeroWideString(string)
_Must_inspect_result_ _In_ PWDFDEVICE_INIT _In_opt_ PCUNICODE_STRING DeviceName
MMRESULT OpenKernelSoundDeviceByName(IN PWSTR DevicePath, IN BOOLEAN ReadOnly, OUT PHANDLE Handle)
#define IsValidSoundDeviceType
#define AllocateWideString(string_length)
_In_ WDFCOLLECTION _In_ ULONG Index
_CRTIMP size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
◆ EnumerateNt4ServiceSoundDevices()
Definition at line 26 of file detect.c.
44 DWORD MaxNameLength = 0, ValueNameLength = 0;
61 SND_ERR(
L"Failed to query registry key information\n");
88 ValueNameLength = MaxNameLength +
sizeof(
WCHAR);
90 SND_TRACE(
L"Interested in devices beginning with %wS\n", DevicePath);
103 ( ValueDataLength ==
sizeof(
DWORD) ) )
108 SND_TRACE(
L"Found device: %wS\n", DevicePath);
109 SoundDeviceDetectedProc(
ValueData, DevicePath);
114 ValueNameLength = MaxNameLength +
sizeof(
WCHAR);
117 ValueDataLength =
sizeof(
DWORD);
130 SND_WARN(
L"Unable to open the Devices key!\n");
static VOID FreeMemory(PCREATE_DATA Data)
ACPI_SIZE strlen(const char *String)
_Must_inspect_result_ _In_ WDFKEY _In_ PCUNICODE_STRING _In_ ULONG _Out_opt_ PULONG _Out_opt_ PULONG ValueType
#define VALIDATE_MMSYS_PARAMETER(parameter_condition)
LONG WINAPI RegCloseKey(HKEY hKey)
#define IsValidSoundDeviceType
#define AllocateWideString(string_length)
_Must_inspect_result_ _In_ WDFDEVICE _In_ ULONG _In_ ACCESS_MASK _In_opt_ PWDF_OBJECT_ATTRIBUTES _Out_ WDFKEY * Key
MMRESULT OpenSoundDeviceRegKey(IN LPWSTR ServiceName, IN DWORD DeviceIndex, OUT PHKEY KeyHandle)
_In_ GUID _In_ PVOID ValueData
_Must_inspect_result_ _In_ WDFKEY _In_ PCUNICODE_STRING ValueName
#define REG_DEVICES_KEY_NAME_U
Referenced by DriverProc().