views:

20

answers:

0

Hi, i have problem i can't solve for a while. For one of my C++ projects i have to write function to change Bluetooth radio local name. It uses Microsoft Bluetooth stack. You can find this name if you open any Bluetooth dongle device properties and navigate to Advanced Properties. I need this without any third-party libraries, only WinApi functions. Need to do it in the way Windows Device Manager do. The problem is that i didn't figure out how it do it. BluetoothAPI and Setupapi seem to be useless here. SetupDiSetDeviceRegistryProperty with SPDRP_FRIENDLYNAME parameter isn't what i need. Changing local name in registry also do nothing. Maybe i should somehow restart bluetooth stack after that. I don't know. So, how can i programmatically change device advanced properties? Thanks in advance.