Today, an NDIS-based driver is generated using the DriverStudio wizard.ProgramWhen compilation starts, "ntstrsafe. Lib" cannot be opened, and then "kndis5mp. Lib" appears ".
Solution:
1. ntstrsafe. Lib
Drivers generated by DriverStudio are connected to ntstrsafe. lib library, but this library does not actually exist. Remove this library from the link item in the settings item of the project, and find the following line in the sources file of the project:
Targetlibs = $ (ddk_lib_path)/ntstrsafe. Lib $ (ddk_lib_path)/CSQ. Lib, and delete it directly.
Sometimes the system prompts that there is no ntstrsafe. H, # include <ntstrsafe. h> error. Just comment it out.
The above error occurs in the Windows XP operating system. I used to help others configure the development environment on the 2003 Server. As a result, I found that no such problem exists, in addition, you can use the compile button of vc6.0 for compilation, which is not applicable to Windows XP. (This method is taken from the Internet)
2. kndis5mp. Lib
First open the DriverStudio Installation File: DriverStudio \ DriverNetworks. At this time, you will find that the DriverStudio \ DriverNetworks \ lib directory is empty. In this case, kndis5mp. Lib does not exist and needs to be produced by yourself.
Go to the DriverStudio \ DriverNetworks \ source directory and find kndis64.dsp and kndislib. DSP... Kndislib. DSP is the project that produces kndis5mp. Lib. (The other is to generate kndis5pt. Lib ).Note: The compilation method here is build → batch build → ("select x86" is selected later) → rebuild all.
Go back and check that the DriverStudio \ DriverNetworks \ lib directory has kndis5mp. Lib.
Next, compile your own project file again and there should be no error.
[Thank you for your reference]
Http://blog.csdn.net/flyingtimeice/article/details/3378985
Http://bbs2.driverdevelop.com/read.php? Tid = 13463
Http://topic.csdn.net/t/20030930/15/2317916.html