vendredi 3 avril 2015

How to create process in suspended state with kernel32.dll loaded using visual c++?

I'd like to create a new process from executable using C++ in Windows 7. I know I can use the CreateProcess() function to create a normal independent processes from executables. Now I have to create a process in suspended state and in addition to this requirement, the process should already have loaded the kernel32.dll before suspending. The goal is to inject a dll into the new process before any other code has opportunity to run, in order for the hooks to take effect.


So how do I create process from .exe file with command line parameters, such that it suspends after loading the kernel32.dll?


Aucun commentaire:

Enregistrer un commentaire