mirror of
https://github.com/Thracky/GlosSI.git
synced 2024-11-09 07:10:28 +00:00
20 lines
334 B
C++
20 lines
334 B
C++
#pragma once
|
|
|
|
#include <windows.h>
|
|
#include <tlhelp32.h>
|
|
#include <string>
|
|
|
|
class Injector {
|
|
|
|
|
|
public:
|
|
static void TakeDebugPrivilege();
|
|
static int Inject(DWORD pid, std::wstring &libPath);
|
|
static int Eject(DWORD pid, std::wstring &libPath);
|
|
|
|
private:
|
|
|
|
static bool findModule(DWORD pid, std::wstring &libPath, HMODULE &hMod);
|
|
|
|
|
|
}; |