Injection service component.
More...
#include <injection_service.hpp>
|
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.
|
|
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 |
|
Injection service component.
This component is responsible for injecting a DLL into a process.
◆ Inject()
void CInjectionService::Inject |
( |
HANDLE |
hProcess, |
|
|
const std::string & |
dllPath, |
|
|
InjectionType |
type |
|
) |
| |
Inject a DLL into a process.
- Parameters
-
hProcess | Handle to the process. |
dllPath | Path to the DLL. |
type | Type of injection. |
◆ LoadLibraryDLL()
bool CInjectionService::LoadLibraryDLL |
( |
HANDLE |
hProc, |
|
|
const std::string & |
dllpath |
|
) |
| |
Load a library DLL.
- Parameters
-
hProc | Handle to the process. |
dllpath | Path 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
-
hProc | Handle to the process. |
filepath | Path 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
-
phProcess | Handle to the process. |
phThread | Handle to the thread. |
exePath | Path to the executable. |
launchOptions | Launch options. |
The documentation for this class was generated from the following file:
- xenon/includes/xenon/components/services/injection_service.hpp