資源簡介
用vc++加載卸載自己的驅動程序,并打開驅動

代碼片段和文件信息
//?DriverLoadTest.cpp?:?定義應用程序的類行為。
//
#include?“stdafx.h“
#include?“DriverLoadTest.h“
#include?“DriverLoadTestDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#endif
//?CDriverLoadTestApp
BEGIN_MESSAGE_MAP(CDriverLoadTestApp?CWinApp)
ON_COMMAND(ID_HELP?&CWinApp::onhelp)
END_MESSAGE_MAP()
//?CDriverLoadTestApp?構造
CDriverLoadTestApp::CDriverLoadTestApp()
{
//?TODO:?在此處添加構造代碼,
//?將所有重要的初始化放置在?InitInstance?中
}
//?唯一的一個?CDriverLoadTestApp?對象
CDriverLoadTestApp?theApp;
//?CDriverLoadTestApp?初始化
BOOL?CDriverLoadTestApp::InitInstance()
{
//?如果一個運行在?Windows?XP?上的應用程序清單指定要
//?使用?ComCtl32.dll?版本?6?或更高版本來啟用可視化方式,
//則需要?InitCommonControlsEx()。否則,將無法創建窗口。
INITCOMMONCONTROLSEX?InitCtrls;
InitCtrls.dwSize?=?sizeof(InitCtrls);
//?將它設置為包括所有要在應用程序中使用的
//?公共控件類。
InitCtrls.dwICC?=?ICC_WIN95_CLASSES;
InitCommonControlsEx(&InitCtrls);
CWinApp::InitInstance();
AfxEnableControlContainer();
//?標準初始化
//?如果未使用這些功能并希望減小
//?最終可執行文件的大小,則應移除下列
//?不需要的特定初始化例程
//?更改用于存儲設置的注冊表項
//?TODO:?應適當修改該字符串,
//?例如修改為公司或組織名
SetRegistryKey(_T(“應用程序向導生成的本地應用程序“));
CDriverLoadTestDlg?dlg;
m_pMainWnd?=?&dlg;
INT_PTR?nResponse?=?dlg.DoModal();
if?(nResponse?==?IDOK)
{
//?TODO:?在此放置處理何時用
//??“確定”來關閉對話框的代碼
}
else?if?(nResponse?==?IDCANCEL)
{
//?TODO:?在此放置處理何時用
//??“取消”來關閉對話框的代碼
}
//?由于對話框已關閉,所以將返回?FALSE?以便退出應用程序,
//??而不是啟動應用程序的消息泵。
return?FALSE;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????846700??2013-05-25?19:00??DriverLoadTest\Debug\DriverLoadTest.ilk
?????文件??????14416??2008-07-26?22:30??DriverLoadTest\Debug\WinRing0.sys
?????文件???????6882??2013-05-25?19:00??DriverLoadTest\DriverLoadTest\Debug\BuildLog.htm
?????文件??????58584??2013-05-25?18:53??DriverLoadTest\DriverLoadTest\DriverLoadTest.aps
?????文件???????1751??2013-05-25?11:44??DriverLoadTest\DriverLoadTest\DriverLoadTest.cpp
?????文件????????489??2013-05-25?11:44??DriverLoadTest\DriverLoadTest\DriverLoadTest.h
?????文件???????5093??2013-05-25?18:53??DriverLoadTest\DriverLoadTest\DriverLoadTest.rc
?????文件???????5552??2013-05-25?18:54??DriverLoadTest\DriverLoadTest\DriverLoadTest.vcproj
?????文件???????1423??2013-05-25?19:29??DriverLoadTest\DriverLoadTest\DriverLoadTest.vcproj.20130511-0914.Administrator.user
?????文件???????4820??2013-05-25?19:10??DriverLoadTest\DriverLoadTest\DriverLoadTestDlg.cpp
?????文件????????605??2013-05-25?18:53??DriverLoadTest\DriverLoadTest\DriverLoadTestDlg.h
?????文件???????2889??2013-05-25?11:44??DriverLoadTest\DriverLoadTest\ReadMe.txt
????.......?????21630??2003-07-24?09:52??DriverLoadTest\DriverLoadTest\res\DriverLoadTest.ico
?????文件????????370??2013-05-25?11:44??DriverLoadTest\DriverLoadTest\res\DriverLoadTest.rc2
?????文件????????778??2013-05-25?18:53??DriverLoadTest\DriverLoadTest\resource.h
?????文件????????145??2013-05-25?11:44??DriverLoadTest\DriverLoadTest\stdafx.cpp
?????文件???????1796??2013-05-25?11:44??DriverLoadTest\DriverLoadTest\stdafx.h
?????文件???????1030??2013-05-25?11:44??DriverLoadTest\DriverLoadTest\targetver.h
?????文件????????908??2013-05-25?11:44??DriverLoadTest\DriverLoadTest.sln
????..A..H.?????15360??2013-05-25?19:29??DriverLoadTest\DriverLoadTest.suo
?????目錄??????????0??2013-05-25?19:29??DriverLoadTest\DriverLoadTest\Debug
?????目錄??????????0??2013-05-25?11:44??DriverLoadTest\DriverLoadTest\res
?????目錄??????????0??2013-05-25?19:29??DriverLoadTest\Debug
?????目錄??????????0??2013-05-25?19:10??DriverLoadTest\DriverLoadTest
?????目錄??????????0??2013-05-25?19:30??DriverLoadTest
-----------?---------??----------?-----??----
???????????????991221????????????????????25
評論
共有 條評論