WPARAM
WPARAM is a Windows API type used to convey information in Windows messages. It is defined as an unsigned, pointer-sized integer (typedef UINT_PTR WPARAM) and matches the platform’s pointer size: 32 bits on 32‑bit Windows and 64 bits on 64‑bit Windows. Together with LPARAM, WPARAM forms part of the standard message parameter pair delivered to a window procedure.
Usage of WPARAM depends on the specific message being processed. In a typical window procedure, WPARAM is
Examples of common patterns include WM_COMMAND, where LOWORD(wParam) yields the control or menu item identifier and
There are helper macros to extract information from the parameters, such as LOWORD, HIWORD, and specialized
In short, WPARAM is a flexible, architecture-aware parameter in Windows messages, whose content is defined by