Executing c: \ windows \ system32 \ cmd.exe solved by Passthru. sys error in NDIS Compilation

Source: Internet
Author: User

Example of self-contained DDK: C: \ winddk \ 2600 \ SRC \ Network \ NDIS \ passthru

Some of my friends have extended the passthru function by setting up projects (such as Vc), but an error is reported during compilation on my computer:
------------------ Configuration: passthru_ex-Win32 debug --------------------

The specified path cannot be found.

Error executing c: \ windows \ system32 \ cmd.exe.


Passthru. sys-1 error (s), 0 warning (s)

I asked the tutor, who said there was a problem with the environment variable settings and asked him to check the environment variables. With this idea, I opened the settings of the project and found the following:


You will find that the setting page of the project created in this and peacetime is different, so I do not know how to set it. (The settings page for common projects is shown below)

Therefore, I cannot solve the problem by setting environment variables.

 

After thinking, I think the. sys Driver file compilation may be different from that of common applications.ProgramIs not the same, so I open
"Start → program → Development Kits → Windows DDK 2600 → build environments → Win XP checked build environment"

Switch to the source code path: C: \ sourcecode (a) \ winnetdriver and enter "Build-CZ" to start compilation.
The results will generate two folders: "OBJ" and "objchk". The last "Passthru. sys" is in the "objchk" folder.

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.