31 Jul
2025
31 Jul
'25
9 a.m.
Implement `DeviceWatcher` on top of a `HDEVQUERY` object, obtained from `DevCreateObjectQuery`. All events from the query object's associated callback are directly forwarded to the `DeviceWatcher`'s corresponding event handlers. As closing/freeing the `HDEVQUERY` is performed asynchronously, I have also added `IWeakReference` support for the device watcher. -- v3: windows.devices.enumeration: Implement DeviceInformationStatics::DeviceWatcher using DevCreateObjectQuery. windows.devices.enumeration: Implement IWeakReferenceSource for DeviceWatcher. windows.devices.enumeration/tests: Add weak reference tests for DeviceWatcher. https://gitlab.winehq.org/wine/wine/-/merge_requests/8555