Using Visual Studio to Build Drivers

Although Visual Studio is quite obviously promoted as an application development tool for C++ (and several other languages), it is nonetheless an IDE for the standard compiler and linker. Therefore, using the proper compile and link switch settings, the tool can be used to build kernel-mode device drivers.

The DDAppWiz Tool

The CD that accompanies this book includes an App Wizard that conveniently provides the necessary compile and link switch settings for Visual Studio to build a device driver. The file, DDAppWiz.AWX, must be copied into the Visual Studio path: ...\Microsoft Visual Studio\Common\MSDev98\Template. Thereafter, a new Project type appears in the New Project dialog box: W2K Device Driver.

Get Windows® 2000 Device Driver Book: A Guide for Programmers, Second Edition, The now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.