?? loader.cpp
字號(hào):
// Loader.cpp:裝載DLL文件.
//
#include "stdafx.h"
#include "Injector.h"
void main()
{
// DLL文件全路徑名.
CString strDllFullPathName;
char cCurDir[MAX_PATH];
GetCurrentDirectory(MAX_PATH,cCurDir);
strDllFullPathName=CString(cCurDir)+TEXT("\\hidedll.dll");
// 獲得目標(biāo)進(jìn)程的進(jìn)程號(hào)pid,這里取為"calc.exe".
DWORD dwProcessId = 0;
HWND hWnd = FindWindow("SciCalc","計(jì)算器");
if(!hWnd) {
printf("Can't find the file!\n");
return;
}
// 獲得目標(biāo)進(jìn)程的進(jìn)程號(hào)pid.
GetWindowThreadProcessId(hWnd, &dwProcessId);
int nLen=strDllFullPathName.GetLength();
LoadLib(dwProcessId,strDllFullPathName.GetBuffer(nLen));
}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -