怎样取DWORD值的高16位和低16位的值
怎样取DWORD值的高16位和低16位的值 ?
[解决办法]
- C/C++ code
unsigned long H16 = 0xFFFF0000,L16 = 0x0000FFFF;DWORD v;H16 = v & H16;L16 = v & L16;
[解决办法]
- C/C++ code
DWORD dw = 0x12345678;WORD wLow = LOWORD(dw);WORD wHigh = HIWORD(dw);
发布时间: 2012-04-22 18:34:46 作者: rapoo
怎样取DWORD值的高16位和低16位的值
怎样取DWORD值的高16位和低16位的值 ?
[解决办法]
unsigned long H16 = 0xFFFF0000,L16 = 0x0000FFFF;DWORD v;H16 = v & H16;L16 = v & L16;
[解决办法]
DWORD dw = 0x12345678;WORD wLow = LOWORD(dw);WORD wHigh = HIWORD(dw);