DWORD to bytes using bitwise shift operators
<p>I can't get it to work correctly.</p>

<pre><code>#include &lt;windows.h&gt;

int main()
{
    DWORD i  = 6521;

    BYTE first = i &gt;&gt; 32;
    BYTE second = i &gt;&gt; 24;
    BYTE third = i &gt;&gt; 16;
    BYTE fourth = i &gt;&gt; 8;

    i = (((DWORD)fourth) &lt;&lt; 24) | (((DWORD)third) &lt;&lt; 16) | (((DWORD)second) &lt;&lt; 8) | first;
}
</code></pre>
