Using WASAPI, I am successfully enumerating the output devices using IMMDeviceEnumerator::EnumAudioEndpoints and then eventually I have my IMMDevice. Then I can get the IPropertyStore and see there are variety of properties, but not sure which if any I can use to then work with the SetupDi or CM_Get_Device APIs to try to determine if the endpoint is associated to Bluetooth hardware
This page
https://learn.microsoft.com/en-us/windows/win32/coreaudio/device-properties
suggests I can get PKEY_Device_InstanceId and PKEY_Device_ContainerId from the property store, but they are not there.
Does anyone have an idea how to proceed here?
PKEY_Device_InstanceIdis not found on theIMMDevicethen is there any workaround?DEVPKEY_Device_Parentis this how I find the actual Bluetooth device? Then endpoint itself "Speakers (JBL)" does not have any such property, but I can see in Device Manager it's parent object does. However I am having trouble matching the ID provided byDEVPKEY_Device_Parent