You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
GlosSI/Injector/Injector.h

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);
};