Mmdevapi | Audioendpoints [2021]

HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\MMDevices\Audio\Render 00000000-0000-0000-ffff-ffffffffffff Properties DeviceClass = "Speakers" FriendlyName = "Speakers (Realtek High Definition Audio)"

It allows applications to query detailed information about a device without needing specific drivers.

To interact with audio endpoints, developers use a set of COM-based interfaces defined in the Mmdeviceapi.h header : IMMDevice (mmdeviceapi.h) - Win32 apps | Microsoft Learn mmdevapi audioendpoints

The MMDevAPI AudioEndpoints feature provides three main capabilities to applications:

// Get the device name LPWSTR pwszDeviceName; hr = pDevice->GetFriendlyName(&pwszDeviceName); if (SUCCEEDED(hr)) hr = pDevice-&gt

Application (e.g., Chrome, Zoom, DAW) ↓ [WASAPI / DirectSound / WaveOut] ↓ MMDevAPI (mmdevapi.dll) ← User Mode ↓ [RPC / ALPC] ↓ AudioEndpointBuilder Service (svchost.exe) ← System Service ↓ Kernel Streaming (portcls.sys, ks.sys) ↓ Audio Hardware (HD Audio, USB Audio, Bluetooth)

#include <windows.h> #include <mmdeviceapi.h> if (SUCCEEDED(hr)) Application (e.g.

MMDevAPI ( mmdevapi.dll ) is the authoritative user-mode interface for audio endpoint discovery and management in modern Windows versions. It provides a clean, extensible COM-based abstraction over the underlying PnP and kernel streaming layers. Its tight integration with the AudioEndpointBuilder service ensures dynamic device detection and state consistency.

Denna hemsida är byggd med N.nu - prova gratis du med.    (klicka här för att förlänga premium)(info & kontakt)