parsing bytes (C Windows) -
I have a DWORD value that can appear in hex:
DWORD Val = 0xFF01091A
How can I read each byte? What do I mean, how can I read FF, 01, 9 and 1A?
Thank you!
DWORD x1 = (0xFF01091A and 0xFF000000)> & Gt; 24; DWORD x2 = (0xFF01091A and 0x00FF0000) & gt; & Gt; 16; DWORD x3 = (0xFF01091A and 0x0000FF00) & gt; & Gt; 8; DWORD x4 = (0xFF01091A and 0x000000FF) & gt; & Gt; 0;
Comments
Post a Comment