36 SND_ERR(
L"Unable to get sound device path\n");
56 SND_TRACE(
L"Opening NT4 style sound device\n");
69 SND_TRACE(
L"Closing NT4 style sound device\n");
95 SND_TRACE(
L"NT4 get-capabilities routine called\n");
125 SND_ERR(
L"Failed to open device\n");
141 SND_ERR(
L"Retrieval of capabilities information failed\n");
162 SND_TRACE(
L"NT4 wave format support querying routine called\n");
175 SND_ERR(
L"Unable to open kernel sound device\n");
189 SND_ERR(
L"Sync overlapped I/O failed - MMSYS_ERROR %d\n",
Result);
242 SND_TRACE(
L"Submitting wave header %p (in sound thread)\n", WaveHeader);
PRTL_UNICODE_STRING_BUFFER Path
DWORD SyncOverlappedDeviceIoControl(IN HANDLE Handle, IN DWORD IoControlCode, IN LPVOID InBuffer, IN DWORD InBufferSize, OUT LPVOID OutBuffer, IN DWORD OutBufferSize, OUT LPDWORD BytesTransferred OPTIONAL)
_Must_inspect_result_ typedef _Out_ PHIDP_CAPS Capabilities
_Inout_ PUSB_DEVICE_HANDLE DeviceHandle
#define IOCTL_WAVE_SET_FORMAT
#define IOCTL_WAVE_QUERY_FORMAT
#define IOCTL_WAVE_GET_CAPABILITIES
#define IOCTL_MIDI_GET_CAPABILITIES
BOOLEAN IsValidSoundDevice(IN PSOUND_DEVICE SoundDevice)
MMRESULT OpenKernelSoundDeviceByName(IN PWSTR DevicePath, IN BOOLEAN ReadOnly, OUT PHANDLE Handle)
#define VALIDATE_MMSYS_PARAMETER(parameter_condition)
MMRESULT CloseKernelSoundDevice(IN HANDLE Handle)
MMRESULT TranslateInternalMmResult(IN MMRESULT Result)
MMRESULT GetSoundDeviceInstanceHandle(IN PSOUND_DEVICE_INSTANCE SoundDeviceInstance, OUT PVOID *Handle)
MMRESULT GetSoundDeviceIdentifier(IN PSOUND_DEVICE SoundDevice, OUT PVOID *Identifier)
MMRESULT GetSoundDeviceType(IN PSOUND_DEVICE SoundDevice, OUT PMMDEVICE_TYPE DeviceType)
#define MMSUCCESS(result)
BOOLEAN IsValidSoundDeviceInstance(IN PSOUND_DEVICE_INSTANCE SoundDeviceInstance)
#define SND_ASSERT(condition)
MMRESULT OpenNt4SoundDevice(IN PSOUND_DEVICE SoundDevice, OUT PVOID *Handle)
MMRESULT OpenNt4KernelSoundDevice(IN PSOUND_DEVICE SoundDevice, IN BOOLEAN ReadOnly, OUT PHANDLE Handle)
MMRESULT GetNt4SoundDeviceCapabilities(IN PSOUND_DEVICE SoundDevice, OUT PVOID Capabilities, IN DWORD CapabilitiesSize)
MMRESULT QueryNt4WaveDeviceFormatSupport(IN PSOUND_DEVICE SoundDevice, IN LPWAVEFORMATEX Format, IN DWORD FormatSize)
MMRESULT CloseNt4SoundDevice(IN PSOUND_DEVICE_INSTANCE SoundDeviceInstance, IN PVOID Handle)
MMRESULT SetNt4WaveDeviceFormat(IN PSOUND_DEVICE_INSTANCE SoundDeviceInstance, IN DWORD DeviceId, IN LPWAVEFORMATEX Format, IN DWORD FormatSize)
#define IS_MIDI_DEVICE_TYPE(x)
#define IS_WAVE_DEVICE_TYPE(x)
_At_(*)(_In_ PWSK_CLIENT Client, _In_opt_ PUNICODE_STRING NodeName, _In_opt_ PUNICODE_STRING ServiceName, _In_opt_ ULONG NameSpace, _In_opt_ GUID *Provider, _In_opt_ PADDRINFOEXW Hints, _Outptr_ PADDRINFOEXW *Result, _In_opt_ PEPROCESS OwningProcess, _In_opt_ PETHREAD OwningThread, _Inout_ PIRP Irp Result)(Mem)) NTSTATUS(WSKAPI *PFN_WSK_GET_ADDRESS_INFO