Xenon
A framework for cheat development.
 
Loading...
Searching...
No Matches
CInjectionService Class Reference

Injection service component. More...

#include <injection_service.hpp>

Inheritance diagram for CInjectionService:
Collaboration diagram for CInjectionService:

Public Member Functions

bool LoadLibraryDLL (HANDLE hProc, const std::string &dllpath)
 Load a library DLL.
 
void Inject (HANDLE hProcess, const std::string &dllPath, InjectionType type)
 Inject a DLL into a process.
 
bool OpenGame (HANDLE *phProcess, HANDLE *phThread, std::string exePath, std::string launchOptions)
 Open a game.
 
bool ManualMapDLL (HANDLE hProc, const std::string &filepath)
 Manual map a DLL into a process.
 
- Public Member Functions inherited from CComponent
virtual void Init ()
 Will be executed when the component is initialized.
 
virtual void Update ()
 If Update loop enabled, this function will be executed every frame.
 
virtual void UpdateCurrentTarget (TargetProfile *target)
 If Update loop enabled, this function will be executed every frame for each target.
 
virtual ~CComponent ()=default
 

Additional Inherited Members

- Public Attributes inherited from CComponent
std::shared_ptr< Xenong_pXenon
 
std::shared_ptr< XenonVariablesg_pXenonVariables
 
std::shared_ptr< XenonConfigg_pXenonConfigs
 

Detailed Description

Injection service component.

This component is responsible for injecting a DLL into a process.

Member Function Documentation

◆ Inject()

void CInjectionService::Inject ( HANDLE  hProcess,
const std::string &  dllPath,
InjectionType  type 
)

Inject a DLL into a process.

Parameters
hProcessHandle to the process.
dllPathPath to the DLL.
typeType of injection.

◆ LoadLibraryDLL()

bool CInjectionService::LoadLibraryDLL ( HANDLE  hProc,
const std::string &  dllpath 
)

Load a library DLL.

Parameters
hProcHandle to the process.
dllpathPath to the DLL.
Returns
True if the DLL was loaded, false otherwise.

◆ ManualMapDLL()

bool CInjectionService::ManualMapDLL ( HANDLE  hProc,
const std::string &  filepath 
)

Manual map a DLL into a process.

Parameters
hProcHandle to the process.
filepathPath to the DLL.
Returns
True if the DLL was mapped, false otherwise.

◆ OpenGame()

bool CInjectionService::OpenGame ( HANDLE *  phProcess,
HANDLE *  phThread,
std::string  exePath,
std::string  launchOptions 
)

Open a game.

Parameters
phProcessHandle to the process.
phThreadHandle to the thread.
exePathPath to the executable.
launchOptionsLaunch options.

The documentation for this class was generated from the following file: