Development tools: Visual Studio 2015 Enterprise Edition
Host: Windows10 X64 Enterprise Edition, host is the operating system with Visual Studio 2015 installed, mainly for driver development and debugging.
Target machine: Windows10 X86 Enterprise Edition, the target machine is the operating system that installs and debugs the drive, and the host is separate operating system.
Virtual machine: Vmwear Workstation Pro
Premise: We have successfully installed Visual Studio 2015 and the WDK, and it is more important to ensure that the SDK version and the WDK version are consistent, and that inconsistencies can cause Visual Studio 2015 to have a macro definition and a WDK that uses the. Severely affects the driver compilation! For this question, you can read this article: http://www.cnblogs.com/sunylat/p/6286527.html
OK, so I'll tell you how I can achieve this goal step-by-step!
One, configure the target machine: let the target machine to communicate with the host, become a can carry out our development of the driver installation and commissioning of the operating system.
1, add and set up the communication serial port: We use the serial port method, by default, the operating system installed inside the VM does not open the serial port, we need to manually add, the following is the process of adding. Note: When adding ports, the operating system in the virtual machine must be shut down to be added.
A, set the right mouse button on the operating system that you want to set as the target machine.
B, in the virtual machine settings, click the "Add" button below, and then in the "Add Hardware Wizard" pop-up, select "Serial port" in the list on the left, then click "Next" button.
C, select output to Named Pipes, and then click the Next button.
D, here, click the Middle drop-down list, select "The other end is the application", the other two items do not need to be modified, the above is a named pipe name; Then click the "Finish" button.
E, this is the final configuration, if the configuration is correct, click the "OK" button to complete the serial port add and set.
Successfully compiled with Visual Studio 2015, released umdf driver to target machine (WINDOWS10 X86)!!