-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: BluetoothFindFirstDevice return value differs from MSDN doc #1507
Comments
Looks like the metadata is missing the handle type mapping. Will transfer to the Win32 metadata repo for resolution. |
Wow! Thanks for the amazing and fast turn around!! Final question: when will this be released into the windows rust crate? |
I can ingest it into the windows-rs repo as soon as there's another release of the Win32 metadata. |
@kennykerr I really hope I am not bothering you. I really appreciate your hard work and don't want to be a nuisance. I believe that there was another release of win32metadata: https://github.com/microsoft/win32metadata/releases/tag/v47.0.26-preview . As I only see preview releases I am wondering if this release qualifies. Thanks! |
No worries, I tried picking up that release but there were a few regressions that prevented me from upgrading. I've requested another release as the issues I uncovered have been resolved. |
Which regressions? There's only 1 change really since v47 and that was an updated fix to an API that was already broken. |
I think the outstanding fix was #1509. |
Right but weren't those APIs broken before the partial fix? |
@levigross ok, was able to ingest the latest version here: microsoft/windows-rs#2400 |
Thanks 😊 |
Which crate is this about?
windows
Crate version
0.46.0
Summary
Hello,
Sorry if this isn't an issue and I just don't understand the windows API (thanks in advance for your patience and help)
The function
BluetoothFindFirstDevice
is declared as:Source: https://microsoft.github.io/windows-docs-rs/doc/windows/Win32/Devices/Bluetooth/fn.BluetoothFindFirstDevice.html
In MSDN it is listed as:
https://learn.microsoft.com/en-us/windows/win32/api/bluetoothapis/nf-bluetoothapis-bluetoothfindfirstdevice
I think this is a bug, because that function should return
HBLUETOOTH_DEVICE_FIND
Toolchain version/configuration
rustup show
Default host: x86_64-pc-windows-msvc
rustup home: C:\Users\user.rustup
stable-x86_64-pc-windows-msvc (default)
rustc 1.68.0 (2c8cc3432 2023-03-06)
Reproducible example
No response
Crate manifest
No response
Expected behavior
BluetoothFindFirstDevice
returnsHBLUETOOTH_DEVICE_FIND
Actual behavior
BluetoothFindFirstDevice
returnsisize
Additional comments
No response
The text was updated successfully, but these errors were encountered: