On the basis of the first article, the following steps can be made to compile the X64 driver.
(It is recommended that you build another project to avoid confusion, because some of the compilation options for x86 and x64 are different.) )
1. Install the VS2008 x64 build component. If you have not previously installed it, you can follow the steps below to install it:
- select Visual Studio and click Uninstall/change .
- wait. Wait some more. click Next .
- CHOOSE  Add or Remove Features .
- select X64 Compilers and Tools .
|
2. Create a new Win32 empty project, copy the code for the x86 project, and then configure it according to the compilation options for the first article.
3. Select Create from the top menu, Configuration Manager, select New in the Active solution platform drop-down box, select x64 in the new solution platform for the popup box, and select Win32 from the copy settings from here.
Then, in the projects listed below, select the project to compile into x64, select x64 in the drop-down box, and select New if there is no x64.
Note: If you select x64 for the second time, you will be prompted to have this platform, then tick the "Create new platform" option.
4. Select target machine for the "advanced" page of the project Properties "linker": X64 machine.
5. "Register Output" select "No", "Additional Library directory" to change to AMD64 directory in DDK.
After compiling, the x64 sys file is generated. The path is the < project root directory >/x64/release, not the < project root >/release, if Debug is selected, replacing release with Debug is the path to the generated sys.
Vs2008+windows DDK 7 Environment configuration (ii)