I've managed to compile dummyApp.exe file and it's payloadLib.dll but the DLL fails miserably when trying to execute VirtualProtectEx. The line of code that throws up an error is:
The error code is 487 - "ERROR_INVALID_ADDRESS"
I've seen that some of the code in the package needs some slight tweaks. My system is Windows XP SP3 and DEP is enabled only for essential Windows programs and services.
Thank you in anticipation for any insight into how to get this fascinating technique to work.
EDIT: after a bit more reserarch