#include <CATInjectionPropagate.h>
This interception class handles a common and annoying problem with DLL injection - the application we've injected our DLL goes off and executes something else.
A lot of games have launchers that must be used to properly start the game. This class helps make sure that when the launcher executes the game itself, our injected DLL will get bounced into the real game as well.
Definition at line 34 of file CATInjectionPropagate.h.
Public Member Functions | |
CATInjectionPropagate (const CATString &dllPath) | |
virtual | ~CATInjectionPropagate () |
CATResult | HookFunctions () |
Static Protected Member Functions | |
static void | OnCreateProcessW (CATHOOK *hookInst, LPCWSTR lpApplicationName, LPWSTR lpCommandLine, LPSECURITY_ATTRIBUTES lpProcessAttributes, LPSECURITY_ATTRIBUTES lpThreadAttributes, BOOL bInheritHandles, DWORD dwCreationFlags, LPVOID lpEnvironment, LPCWSTR lpCurrentDirectory, LPSTARTUPINFO lpStartupInfo, LPPROCESS_INFORMATION lpProcessInformation) |
Hook function - CreateProcess hook. | |
static void | ProcessFix (CATHOOK *hookInst, LPPROCESS_INFORMATION procInf) |
Handler for process creation. | |
Protected Attributes | |
HMODULE | fKernelDLL |
CATString | fDLLPath |
Static Protected Attributes | |
static CATINTERCEPT_DLL_TABLE_ENTRY | kKernel32Funcs [] |
Kernel32 functions to hook. |