VC6配置WINXP_SP1_DDK

winxp_ddk.2600.1106.iso
  1. 在XP sp3下安装winxp_ddk.2600.1106.iso,所有组件全部选中,安装路径为:C:\WINDDK\2600
  2. 开始->运行->C:\WINDOWS\system32\cmd.exe /k C:\WINDDK\2600\bin\setenv.bat C:\WINDDK\2600 chk

    Once you have installed the DDK, you can create two shortcuts to help with development. The shortcut examples that follow were developed for the Windows XP DDK, build number 2600; your target path may need to be altered depending upon your version of the DDK. The first shortcut should use the following target:

    %windir%\SYSTEM32\CMD.EXE /k C:\WINDDK\2600\bin\setenv.bat C:\WINDDK\2600 chk

    For newer DDKs, use the following:

    %windir%\SYSTEM32\CMD.EXE /k C:\NTDDK\bin\setenv.bat C:\NTDDK checked

    For the 2003 SP1 DDK, use

    %windir%\SYSTEM32\CMD.EXE /k C:\WINDDK\3790.1830\bin\setenv.bat C:\WINDDK\3790.1830 checked

    在C:\WINDDK\2600\INC\下生成w2k、win_me等目录与文件
  3. 开始菜单运行:Win XP Checked Build Environment
    以生成C:\WINDDK\2600.1106\INC\W2K等目录与文件
  4. 在VC6.0-->Tools-->Options,点击"Directories"选项卡:在“Show directories for:"下选择
    1. 选择Include files,然后最上面加上; C:\WINDDK\2600.1106\inc\wxp C:\WINDDK\2600.1106\INC\DDK\WDM\WXP C:\WINDDK\2600.1106\INC\W2K C:\WINDDK\2600.1106\INC\DDK\W2K
    2. 选择Library files,然后最上面加上; C:\WINDDK\2600.1106\lib\wxp\i386 C:\WINDDK\2600.1106\LIB\W2K\I386
    注:
    如果不放到最上面,会报错408多个: d:\\personal\\microsoft\\vc98\\include\\cfgmgr32.h(122) : error C2061: syntax error : identifier 'LOG_CONF'
  5. 把整个目录COPY到WIN7 64位下即可在Debug中使用,Release暂时还不行。 不需要安装DriverStudio,也不需要设置系统变量:C:\WINDDK\2600.1106