Hi @Jin Cheng ,
Thank you for reporting this, and for including the detailed test program and output.
Looking at your output, BluetoothEnableIncomingConnections(NULL, FALSE) returned FALSE, which per the documentation means no radio accepted the state change. Your radio was already non-discoverable, so the documented ordering requirement is met, and something else is blocking the change. To narrow it down, could you try the following and share the results?
- Pass the radio handle explicitly. Use the
hRadioreturned byBluetoothFindFirstRadioinstead ofNULLfor all four calls (BluetoothIsDiscoverable,BluetoothIsConnectable,BluetoothEnableDiscovery,BluetoothEnableIncomingConnections). CallBluetoothGetRadioInfo(hRadio, &info)first to confirm the handle is valid. - Run the test from an elevated (administrator) prompt and compare the results with a non-elevated run.
- Close Settings > Bluetooth & devices before running the test, so nothing else is changing the radio state at the same time.
- Share your environment details: the Bluetooth adapter model, the driver version and provider (Device Manager > Bluetooth > adapter > Properties > Driver), and whether any paired devices are connected during the test.
I also noticed that your OS build, 26100.ge_release.240331, is a very early 24H2 baseline. I can't confirm that this build causes the assertion failure you're seeing. However, the HLK documentation notes that when a known issue in an HLK test or in Windows causes a test to fail incorrectly, an errata filters will be published to address it. And it is recommended using the HLK version that matches the Windows version under test. So updating the OS, using the matching kit, and applying the latest filters is a good way to rule this out.
So before you re-run, I suggest the following:
- Update the test system to the latest cumulative update for Windows 11, version 24H2.
- Use the HLK kit that matches that OS version.The 24H2 kit has been refreshed since its first release, so it's worth checking that your controller is on the current one. The kit downloads are listed on the Windows Hardware Lab Kit page.
- Install the latest HLK filters and playlist, then re-apply the filters to your existing results.Filters are how errata for known false failures get applied, and existing results aren't re-filtered automatically. The steps are in Windows Hardware Lab Kit Filters.
Looking forward to your update. If you found my response helpful or informative, I would greatly appreciate it if you could follow this guide for your confirmation.
Thank you.