Build a Windows XP driver development environment

Source: Internet
Author: User

1. software to be installed:

On the basis of Windows XP, the installation sequence is: Install VC ++ 6.0 first, then ddk2600 (XP version of DDK), and finally install Driver Studio 3.2.

:

DDK of the XP system: ftp: // 202.113.29.4/ISO/M $/winddk/winxp_ddk.rar

Driver Studio: http://download2.77169.com/soft/Source/debug/200801/20071229SoftICExlDS3.2.1.zip

Serial number and registration file: http://www.4x4y.com/10257_CrackDown_Compuware.DriverStudio.v3.2.iNTERNAL.html

Patch ntstrsafe. Lib + CSQ. Lib: http://www.moodisk.com/codes/erp/ntstrsafe.lib+csq.lib.rar

2. installation and configuration
Software installation sequence: Windows XP --> vc6.0 --> winxp_ddk-> driverstudio3.2. If the sequence is wrong, delete driverstudio3.2 and reinstall it. Find the library file ntstrsafe.libw.csq.lib.rar from the Internet, and copy the extracted two library files to the library directory under the winxp_ddk installation directory (my files are C:/winddk/2600/lib/wxp/i386 ). Start vc6 and configure DDK build settings under menu DriverStudio. In the displayed dialog box, select the installed DDK directory (for example, my C: /winddk/2600, if the DDK has a problem, the Windows DDK compiler options option is not available), select "enable only for Driver Studio" in Windows DDK compiler options ".

Vc6.0 --> Tools --> options, click the "directories" tab:
1) · select include files under "show directories for:", and then check whether there is a directory containing the DDK header files (my directory is C:/winddk/2600/INC/wxp ), add if no;
2) · under "show directories for:", select library files and check whether there are any directory of library files containing DDK (my directory is C: /winddk/2600/lib/wxp/i386). If not, add it;
  

Note: When installing DDK, you must install the example (we recommend that you install all the modules). Otherwise, the following error will be reported when compiling vdwlibs. DSW:
Vdw_wdm.lib-1 error (s), 0 warning (s)
Open the file that caused the error and find:
# Error the file is from the DDK at src/WDM/HID/Inc. Install DDK hid samples to install hidport. h. or update include path for hidport. h In the DDK!
This indicates that the instance is not installed when winxp_ddk is installed.

3. Compile library files suitable for local use
(1) Start vc6.0. Start --> all programs --> compuware drivestudio --> Develop --> DDK building settings, make sure that the content below "DDK root directory" is the DDK installation directory (for example, my project is C: /winddk/2600), and then click "luanch program" below to officially start the development environment of vc6.
(2 ). choose file --> open workspace (Open/driverworks/source/vdwlibs in the driverstudio3.2 installation directory. DSW) --> go to the menu build --> batch build, and click "select x86" to select only all 32-bit libraries (my computer is 32-bit. Note: Do not select a 64-bit database for a 32-bit computer; otherwise, an error will occur in subsequent compilation.) --> click "rebuild all" to start compilation.
Note: errors such as file opening failure are usually caused by incorrect orientation of DDK build settings, incorrect installation sequence, or 64-bit libraries selected on 32-bit machines.

4. Compile a built-in DriverStudio instance
  
(1) Start vc6 and click File> open workspace to open the project file C:/program files/compuware/DriverStudio/driverworks/examples/WDM/hellowdm. DSW, and then compile. If no error is reported, the installation and configuration are successful. But don't be too happy. The installation and configuration of the development environment is only the first step in the Great Wall. The rest is to understand the architecture of the driver module and write specific code.

5. Use driver Wizard to generate the driver framework
(1) On the vc6.0 interface, click the menu DriverStudio --> driver wizard. Then, the system will guide you step by step to complete the settings and finally automatically generate the driver framework.
(2) After the driver is set, the driver file will be generated, and then compiled with vc6.0: The build menu will be carried out. Rebuild all will generate the. SYS file, indicating that the driver module has been compiled successfully!
NOTE: If ntstrsafe cannot be enabled. the LIB error indicates that the library file is missing. Refer to the above method to complete the library file, or enter the menu project --> Settings, and click the top line in the box on the left, then ntstrsafe under "project option" on the right. lib and delete it.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.