win2k_samples_code

所属分类:进程与线程
开发工具:C/C++
文件大小:1115KB
下载次数:8
上传日期:2006-05-30 17:07:10
上 传 者hirain
说明:  本源码系《windows内部解密》一书自带光盘,包括了其中的所有源码。
(Department "declassified internal windows," a book onboard optical discs, including one of the all-source.)

文件列表:
win2k samples code\Tools\DDAppWiz.awx (110645, 2000-09-12)
win2k samples code\Tools\DDAPPWIZ.GID (8628, 2004-04-26)
win2k samples code\Tools\DDAPPWIZ.HLP (6258, 2000-09-12)
win2k samples code\Tools\DriverControl.exe (110669, 2000-04-07)
win2k samples code\Tools\DriverControl\DriverControl.clw (1305, 2000-04-07)
win2k samples code\Tools\DriverControl\DriverControl.cpp (2161, 2000-04-07)
win2k samples code\Tools\DriverControl\DriverControl.dsp (4285, 2000-04-07)
win2k samples code\Tools\DriverControl\DriverControl.dsw (549, 2000-04-07)
win2k samples code\Tools\DriverControl\DriverControl.h (1401, 2000-04-07)
win2k samples code\Tools\DriverControl\DriverControl.rc (5463, 2000-04-07)
win2k samples code\Tools\DriverControl\DriverControlDlg.cpp (7797, 2000-04-07)
win2k samples code\Tools\DriverControl\DriverControlDlg.h (1546, 2000-04-07)
win2k samples code\Tools\DriverControl\Resource.h (783, 2000-04-07)
win2k samples code\Tools\DriverControl\StdAfx.cpp (215, 2000-04-07)
win2k samples code\Tools\DriverControl\StdAfx.h (1054, 2000-04-07)
win2k samples code\Tools\DriverControl\res\DriverControl.ico (1078, 2000-04-07)
win2k samples code\Tools\DriverControl\res\DriverControl.rc2 (405, 2000-04-07)
win2k samples code\Tools\DriverControl\res (0, 2006-04-06)
win2k samples code\Tools\DriverControl\Debug (0, 2006-04-06)
win2k samples code\Tools\DriverControl (0, 2006-04-06)
win2k samples code\Tools (0, 2006-04-06)
win2k samples code\Chap9\Testor\Testor.cpp (2355, 2000-09-12)
win2k samples code\Chap9\Testor\Testor.dsp (4284, 2000-04-25)
win2k samples code\Chap9\Testor\Testor.dsw (535, 2000-04-25)
win2k samples code\Chap9\Testor\Debug (0, 2006-04-06)
win2k samples code\Chap9\Testor (0, 2006-04-06)
win2k samples code\Chap9\MinPnP\Driver.cpp (22607, 2000-09-12)
win2k samples code\Chap9\MinPnP\Driver.h (2148, 2000-09-08)
win2k samples code\Chap9\MinPnP\MAKEFILE (269, 1995-07-17)
win2k samples code\Chap9\MinPnP\MinPnP.dsp (4473, 2000-09-08)
win2k samples code\Chap9\MinPnP\MinPnP.dsw (730, 2000-09-07)
win2k samples code\Chap9\MinPnP\MinPnP.reg (305, 2000-09-07)
win2k samples code\Chap9\MinPnP\Sources (116, 2000-09-12)
win2k samples code\Chap9\MinPnP\Unicode.cpp (3667, 2000-09-04)
win2k samples code\Chap9\MinPnP\Unicode.h (1308, 2000-09-04)
win2k samples code\Chap9\MinPnP\Debug (0, 2006-04-06)
win2k samples code\Chap9\MinPnP (0, 2006-04-06)
win2k samples code\Chap9 (0, 2006-04-06)
... ...

I. CONTENTS OF THE CD The Windows 2000 Device Driver Book CD contains the following components: - Sample drivers presented at the end of 12 chapters in the book - Tools to facilitate development and installation of some drivers II. SYSTEM REQUIREMENTS - Windows 2000 Professional or Server - Visual C++ 6.0 Professional or Enterprise - Windows 2000 DDK - Windows 2000 Platform SDK - Parallel Port Loopback connector (CheckIt(R) compliant) The Windows 2000 DDK is available for free download from: http://www.microsoft.com/DDK/ The Windows 2000 Platform SDK is available for free download from: http://msdn.microsoft.com/downloads/sdks/platform/ Of course, all necessary software to develop Windows 2000 device drivers are available from Microsoft as part of MSDN Subscription service. It is also recommended that two tools: - WinObj.exe - DbgView.exe be obtained by download from the site: http://www.sysinternals.com The Parallel Port loopback connector is required for several sample drivers used in the book and is explained in Chapter 8 of the book. The DB-25 connector can be constructed according to directions within this chapter, or can be purchased commercially. III. INSTALLATION III-1. It is important that Visual C++ (Visual Studio) be installed BEFORE installing the Platform SDK or the DDK. Also, be sure to check the innocent box "Register Environment Variables" (by default it is left unchecked) near the end of the Visual C++ installation. This selection sets up numerous environment (including path) variables necessary for successful installation of the Platform SDK and DDK. III-2. Once the Microsoft products are successfully installed, copy the file: DDAppWiz.awx from the Tools directory of this CD to the system's directory: ...\Microsoft Visual Studio\Common\MsDev***\Template Typically, this directory is located under the system's "Program Files" directory. Once copied, a new App Wizard (for creating projects for Windows 2000 device drivers) is available from the Visual C++ IDE (File...New...Project). III-3. Copy the directories "ChapNN" from this CD to the Windows 2000 system, to the directory of your choice. Also, copy the Tools directory. IV. TESTING THE INSTALLATION Each ChapNN directory contains one (or more) sub-directories for the sample driver explained within the chapter. For example, Chap6 contains Visual Studio workspace, project, and source files for a "Minimal" Windows 2000 device driver. IV-1. By navigating to Chap6\Minimal, the file: Minimal.dsw can be opened within Visual Studio as a workspace. Once opened, select Project...Settings...C/C++...Category: Preprocessor and ensure that the path to the "Additional Include Directories" is appropriate for your installation of the DDK. The workspaces contained on this CD were generated assuming that the DDK was installed on: D:\NTDDK Be sure to modify the two include directories to reflect the actual installation location for your system. Similarly, select Project...Settings...Link...Category: Input and ensure that the path to the "Additional Library Path" is appropriate. Then build the project (Build...Build Minimal.SYS). Assuming no errors, the .SYS file is copied to the "system32\Drivers\" directory. (The copy procedure occurs because of a "Post Build" step within the Project Settings.) IV-2. From the Windows Explorer (a.k.a. File Manager), locate and double click on the file: Chap6\Minimal\Minimal.reg This action will install appropriate registry entries for the Minimal driver. IV-3. Reboot the system. IV-4. From the Tools directory (copied from this CD), launch the program: Tools\DriverControl.exe Type "Minimal" for the name of the driver. Click "Start" The driver should start. IV-5. Use WinObj.exe (from the Platform SDK or from "www.sysinternals.com") to validate that the driver has started. A similar procedure applies to all driver samples throughout the book. V. SUPPORT Be sure to visit the book's web site: http://www.W2KDriverBook.com/ for updates or troubleshooting suggestions.

近期下载者

相关文件


收藏者