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.