Mmdevapi

Receive notifications when a new device (like a USB headset) is plugged in or removed. Integration with Windows Core Audio

: It allows applications to identify available audio devices and their current status (e.g., whether a headset is plugged in or unplugged). mmdevapi