|
You are using the wrong parameter block type. Your code will generate a buffer overflow and overwrite the "CmdLine" and "Dummy" variables.
Using the correct format will give you the entry point of the loaded executable. You also must take care of how to get back when your patched program exists.
|