mirror of
https://github.com/HIllya51/LunaHook.git
synced 2024-12-26 13:14:13 +08:00
Update host.cpp
This commit is contained in:
parent
15849bd1a1
commit
eb50325e76
@ -291,15 +291,14 @@ namespace Host
|
||||
}
|
||||
void InjectProcess(DWORD processId,const std::wstring locationX)
|
||||
{
|
||||
CreatePipe(processId);
|
||||
std::thread([processId,locationX]
|
||||
{
|
||||
if(CheckProcess(processId)==false)return;
|
||||
|
||||
auto check=CreatePipeAndCheck(processId);
|
||||
if(check==false)return;
|
||||
|
||||
std::thread([=]
|
||||
{
|
||||
if(InjectDll(processId,locationX))return ;
|
||||
AddConsoleOutput(INJECT_FAILED);
|
||||
|
||||
|
||||
}).detach();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user