Windows Data Types (BaseTsd.h) – Win32 apps | Microsoft Learn
Posted by jpluimers on 2025/07/22
A while ago, I had to figure out the field sizes for some Windows API functions. In the distance past, the base data types used to be defined in windows.h, but over the decades that file has been split into various other files as there are far more than just the BOOL, int, UINT, DWORD, HWND, LPARAM and WPARAM data types. Currently the data types are defined in [Wayback/Wayback] Windows Data Types (BaseTsd.h) – Win32 apps | Microsoft Learn.
Note that C++ allows to specify bit field sizes for fields in struct composite data types, so under some circumstances, fields my have a different number of bits than you might expect from their data type.
Via [Wayback/Archive] c++ dword uint size – Google Search.
–jeroen






Leave a comment