Transferred from blog
Xelloss: http://www.cnblogs.com/Xelloss/archive/2009/09/08/1637148.html
I installed DDK to prepare for learning the kernel, but it has not been tested since it was installed. Today I wrote a file read/write preparation test and found that the compilation failed. I reported that "the file cannot be opened:" ntddk. h "". When I asked Daniel, I learned that the environment was not set up. The environment configuration method was investigated. Provide related information by the way.
First install DDK (when you do not install it) http: // 210.21.117.86/down/OCX/winxpddk.zip
Run http://ddkwizard.assarbad.net/after installation (click it directly)
Ddkwizard_setup.exe
Ddkbuild_bat.zip
Ddkbuild_mirror.zip
Then, remove the two zip files to the DDK installation directory, for example, D: \ winddk. Then, set the environment variables and add the ddkbuild. BAT and ddkbuild. CMD directories to the path variables. For the sake of insurance, I wrote "D: \ winddk; D: \ winddk \ ddkbuild. CMD; D: \ winddk \ ddkbuild. BAT... Test it separately in another day. Create a new system variable,
2000 DDK, the variable name is: w2kbase
For xp ddk, the variable name is wxpbase.
2003 SP1 DDK variable name: wnetbase
The value is D: \ winddk \ 2600.
Start vs2008 and open the tool -- option in the menu. The option dialog box is displayed. Select the project and solution-VC ++ directory on the left, select an executable file from the directory drop-down list that displays the following content on the right, and add the preceding ddkbuild in the following Table box. the path of the BAT file (for example, my D: \ winddk). Similarly, add the file "D: \ winddk \ 2600 \ Inc" and "D: \ winddk \ 2600 \ Inc \ wxp "" D: \ winddk \ 2600 \ Inc \ DDK \ wxp ", add the library file" D: \ winddk \ 2600 \ Lib \ wxp \ i386 ".
After the configuration is complete, turn off Vs and install ddkwizard. After the installation is complete, open Vs and you can directly create the DDK project.
Good test, compilation passed ~
// ================================================ ==============================
Another blog: http://herozoe.blog.163.com/blog/static/1138162842009349514500/
Vs2005 + ddk6001 environment configuration and compilation process