You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Provide a local definition of user32.SetTimer, user32.KillTimer and ole32.CoGetApartmentType on Windows
By overriding the type definition of SetTimer, we prevent None being passed as the callback parameter. This causes problems when integrating Bleak in larger Windows applications that call SetTimer in this way.
By defining the function type definition locally, we don't override the global definition so existing code that uses None as a callback keeps working.
To prevent other problems, we also make the definitions of KillTimer and CoGetApartmentType local.
Copy file name to clipboardexpand all lines: CHANGELOG.rst
+4
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,10 @@ and this project adheres to `Semantic Versioning <https://semver.org/spec/v2.0.0
10
10
`Unreleased`_
11
11
=============
12
12
13
+
Changed
14
+
-------
15
+
* In bleak.backends.winrt.util the SetTimer, KillTimer and CoGetApartmentType functions define their own prototype and don't change ctypes' global state anymore
0 commit comments