Windows driver development tool wdk learning notes (1)

Source: Internet
Author: User
Objective: To use a computer as a development board integrated with a high-performance processor. Of course, it also comes with an advanced operating system Windows (required ). In short, it is the driver on a high-performance Development Board with an operating system. Program Development. Nature: purely hobby 1, yesterday downloaded wdk 7.1.0 Free Edition (from Ms genuine, need to register a Windows Live ID, download link http://www.microsoft.com/downloads/en/confirmation.aspx? Familyid = 36a2630f-5d56-43b5-b996-7633f2ec14ff & displaylang = EN ). Download completed today. The size is 619 MB, in the ISO format. 2. All the installation options are selected during installation. Because the free version is used, I am worried that there may be fewer things. In addition, I am not familiar with driver development. I just installed them all to avoid any problems. 3. Read the help document ("wdk document" under the help directory). It seems that there is no Chinese version and reading speed is slow. After planning, translate the content you have read as study notes. 4. According to my study habits (interest first), find a example and try again first. The first example of learning is ioctl, which is the closest to embedded applications and is able to control some things by yourself. Although it's just a simple Io, of course, this reminds me of the first 8051 experiment "marquee" that I completed in that year, which can bring me just as excited as the "Hello word" program of a beginner in C language. 5. Get started with driver development (vc6.0 and vs2005 have been installed in my system): Of course Code Written in ms. I compiled the document and ran it successfully. (1) Go To The wdk installation directory "\ winddk \ 7600.16385.1 \ SRC \ General \ IOCTL" (2) copy the WDM folder to "D: \" as the experiment directory. (3) Start the "x86 Free Build Environment" tool from "start"> "All Programs" to "build environment> Windows XP" under the WDM directory, is a DOS-based tool. (4) Go to the experiment directory WDM prepared in step (2), go to the "sys" subdirectory, and run the "BLD" command to generate a folder named "objfre_wxp_x86" under the "sys" directory ", the compiled result "sioctl. sys File. Copy it to the directory where the file "sioctl. sys" is located in step (4), and run "sioctl. sys" in the DOS window to view the output result of the driver. The experiment is complete. (6) read step (4) the source file "sioctl. c "," sioctl. h "," makefile "and" sioctl. RC ", understand the driver framework, and prepare to continue learning (read the manual from the beginning ).
Running result:

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.