Module windows_helpers::win32_app
source · Expand description
Helpers to simplify some tedious aspects of a Win32 application.
They allow you to combine them with the regular Windows API, and so can be undermined, which is why they haven’t been implemented hiding underlying complexity too much. E.g., a Window
could be destoyed via its HWND
while the struct continues to exist.
The types automatically free resources they allocated on drop, but you have to pay attention to the correct drop order, e.g., in structs. Since fields are dropped from top to bottom, specify the higher-level resources last.
Activate the feature windows_<version>_win32_app
(available from windows
v0.52 onwards).
Modules§
- Functions to run a blocking Win32 message loop with
GetMessageW()
etc. Necessary for window procedures, hook callbacks, timer callbacks and more.