Game Accessibility Library logo SourceForge.net Logo
Game Accessibility Suite: CATInjectionPropagate Class Reference

CATInjectionPropagate Class Reference
[Common Accessibility Technology [CAT] library]

#include <CATInjectionPropagate.h>

Inheritance diagram for CATInjectionPropagate:

CATIntercept

List of all members.


Detailed Description

Interception of new process creation with injected dll propagation.

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.

Todo:
Currently just handling CreateProcessW(). Add others when we get a chance.

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.

The documentation for this class was generated from the following files:
Generated on Mon Feb 11 04:10:36 2008 for Game Accessibility Suite by doxygen 1.5.4