views:

386

answers:

1

Hi guys, is there a way to get all Audio device names with delphi(D2009) on Vista or Win 7, I managed to get the number of devices, and to get the device PropertyStore using IMMDevice, but I wasnt able to go forward :|

Thanks a lot !

+5  A: 

ask the PropertyStore for the PKEY_DeviceInterface_FriendlyName (look at Windows SDK to get the value)

Mark Heath
I was using this key but I didn't declared it as it should :) This is the right declaration if someone find it helpfull:PKEY_Device_FriendlyName: TPropertyKey = (fmtid: (D1:$a45c254e; D2:$df1c ; D3:$4efd; D4: ($80, $20, $67, $d1, $46, $a8, $50, $e0)); pid: 14);
Andy