Inject multiple dlls with CreateProcessExW

c++ / delphi package - dll injection and api hooking
Post Reply
hardik.choudhary
Posts: 4
Joined: Wed Nov 13, 2019 1:01 pm

Inject multiple dlls with CreateProcessExW

Post by hardik.choudhary »

Hi, as far as I know, createProcessExW allows us to inject a single dll, at the time of process creation. Is there a way to inject multiple dlls with createProcessExW?
Thanks in advance.
madshi
Site Admin
Posts: 10753
Joined: Sun Mar 21, 2004 5:25 pm

Re: Inject multiple dlls with CreateProcessExW

Post by madshi »

All CreateProcessEx does inside is:

1) CreateProcess with CREATE_SUSPENDED.
2) InjectLibrary
3) ResumeThread

You can do the same, but with multiple InjectLibrary calls to inject multiple dlls. The trick here is that creating the process in suspended state (and keeping it that way during injection) allows madCodeHook to use a different injection method.
Post Reply