?? hidedll.cpp
字號:
// HideDll.cpp:用于生成被隱藏的DLL文件.
//
#include "stdafx.h"
#include <afxdllx.h>
static AFX_EXTENSION_MODULE HideDllDLL = { NULL, NULL };
extern "C" int APIENTRY
DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved)
{
// 如果使用lpReserved, 去掉此語句.
UNREFERENCED_PARAMETER(lpReserved);
if (dwReason == DLL_PROCESS_ATTACH)
{
CString szProcessId;
szProcessId.Format("Hook ProcessId:%d",GetCurrentProcessId());
AfxMessageBox(szProcessId);
}
else if (dwReason == DLL_PROCESS_DETACH)
{
TRACE0("HIDEDLL.DLL Terminating!\n");
// 在調用析構函數前終止此庫.
AfxTermExtensionModule(HideDllDLL);
}
return 1; // 成功.
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -