How would I package two unsigned short (WORD) values into one unsigned long (DWORD) value?
I know how to get them using HIWORD and LOWORD macros but is there a ... sort of reverse macro for storing them into a DWORD quickly?
I'm programming in C++ with Microsoft Visual Studio 2012 IDE.
MAKELONG takes two WORDs and combines them into a single DWORD:
DWORD MAKELONG(
WORD wLow,
WORD wHigh
);
No idea why it isn't called MAKEDWORD...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With