Setting up a Visual Studio project for driver compilation

In order to use the features from Windows Driver Kit, such as compilers and libraries, you need to set up the Visual Studio project properties. To do this, perform the following operations:

  1. If you have followed the instructions from Chapter 2, Thread Concept, the example Implementing threads in kernel – open the solution KernelThread. In Solution Explorer, right-click on the DriverApp project and select Properties. Under the General tab, select Target Extension and choose Edit. Rename .exe to .sys. Click on Apply, as shown in the following screenshot:
    Setting up a Visual Studio project for driver compilation
  2. Now, expand the C++ node, and under General ...

Get C++ Multithreading Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.