VS2010 WDK7.1.0 Win7_64

One: software

1. Download VS2010

2. Download WDK7.1.0

http://www.microsoft.com/en-us/download/confirmation.aspx?id=11800

Two: installation precautions

1. Be sure to put WDK in the same directory as VS2010, otherwise the installation will fail, and lessons will be learned from blood and tears!

2. WDK can be installed according to the default options.

Three: environment configuration

1. Refer to XIAOGUOZI'S Blog:

http://www.cppblog.com/guojingjia2006/archive/2011/03/19/142211.html

Four: test

1. Solutions to common problems:

1> Failed to load .dll

Solution:

http://blog.chinaunix.net/uid-11765716-id-3074932.html

 

#include "ntddk.h"

        NTSTATUS 

DriverEntry(PDRIVER_OBJECT DriverObject,PUNICODE_STRING RegistryPath) 

return STATUS_UNSUCCESSFUL; 

}

 

1>------ Build started: Project: UserDriver, Configuration: driver Win32 ------
1> Build started at 2017-1-10 10:01:09.
1>InitializeBuildStatus:
1>Creating 'driver\UserDriver.unsuccessfulbuild' because 'AlwaysCreate' was specified.
1>ClCompile:
1> UserDriver.cpp
1>Link:
1> UserDriver.vcxproj -> C:\Users\Cola\Desktop\User_Driver\UserDriver\driver\UserDriver.sys
1>FinalizeBuildStatus:
1> Deleting file "driver\ UserDriver.unsuccessfulbuild".
1> Touch task is executing on "driver\UserDriver.lastbuildstate".
1>
1> Generated successfully.
1>
1> Elapsed time 00:00:05.71
========== Generated: 1 successful, 0 failed, 0 latest, 0 skipped ==========

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325343426&siteId=291194637