關於我自己

2011年11月29日 星期二

Window Device Kit You First Driver

The Very Easy Guide
1.Install Visual C++ 2008


2. Install DDK(Windows Driver kit)

3. Download the ddkwizard_setup.exe file from http://ddkwizard.assarbad.net/ to your desktop.



4.Install ddkwizard_setup_vx.x.xa

5. 
Open the Visual C++ 2008 express  Application.
In the menu bar, select Tools->Options
In the listing, choose Project and Directories->VC++ Directories.
First, select Include files from the "Show Directories for" List Box.
Click the Insert New icon,

and locate the folder where you have installed DDK
Consider that it is installed in "C:\WinDDK"

Choose Include files in the list box,
and locate and add the following directories:
"C:\WinDDK\6001.18001\inc\api"
"C:\WinDDK\6001.18001\inc\crt"
"C:\WinDDK\6001.18001\inc\ddk"


6. In the Execute files list, locate and add: 
   "C:\WinDDK"






7.Compressing your ddkbuild.cmd and ddkbuild.bat files

8.Setting up environmental variables for DDK

Finish
You First Driver Progrom
Reference ddkwizard Website
Moive:
http://ddkwizard.assarbad.net/demo/

2011年11月28日 星期一

載入驅動程式並引用驅動程式

主要目地用EXE去連結引用驅動程式:

1.把sys放在C:\mydriver\myDriver_Check理用程式載入驅動程式到登錄編輯程式裡
再去用CreateFile去測試 ~ 通常我都用來測試Com1跟USB ~ 但是自己寫了驅動程式HelloMyDriver01所以就直接用HelloMyDriver01測試