--------------------
Windows API を使いこなす
http://keicode.com/windows/index.php
How to Modify Executable Code in Memory
http://support.microsoft.com/kb/127904/en-us
1. VirtualProtect() with the PAGE_WRITECOPY protection.
2. Modify the code pages.
3. VirtualProtect() with the PAGE_EXECUTE protection.
4. FlushInstructionCache().