Click here to Skip to main content
Licence 
First Posted 29 Dec 2002
Views 108,391
Bookmarked 57 times

Driver Wizard

By | 29 Dec 2002 | Article
Driver wizard integrated to the Visual Studio IDE that generates an NT driver project.

Sample Image - DriverWizard.jpg

Introduction

I came across an article QuickSYS which implements an NT driver framework. That article demonstrates a MFC application that gets a project name as a parameter and creates Visual C++ workspace with NT driver framework. I decided to copy the NT driver framework source and to put it in the Visual Studio project wizard as seen above. This is simpler rather than running an external executable application that generates the code for you.

So if you want to write an NT driver, all you have to do is to open Visual Studio and to choose "Driver AppWizard" option. That's all.

How to add custom wizard to Visual Studio IDE

Template wizards have .awx extensions. If you build my source, then the custom wizard is automatically added to the Microsoft Visual Studio\Common\msdev98\Template directory. Once in this directory, my custom AppWizard becomes a project type and shows up on the Projects tab in the New dialog box.

Comment

Visual Studio custom AppWizard always generates a MFC-based project initially. Therefore, I had to override CustomizeProject method in order to change the created project settings. I customized the created NT driver project settings by using the methods of IBuildProject and IConfiguration such as AddToolSettings and RemoveToolSettings.

Furthermore, since driver projects must have the DDK (Driver Development Kit) installed, I assume that the environment variable ddkroot is defined for the DDK installed path. The driver project compilation and linkage depends on that environment variable.

Links regarding drivers

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

About the Author

Dudi Avramov

Web Developer

Israel Israel

Member



Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
Questiondriver wizzard program PinmemberMember 900072713:56 19 May '12  
QuestionVisual Studio 2005 Driver Wizard? PinmemberFrontier2:30 9 Feb '06  
AnswerRe: Visual Studio 2005 Driver Wizard? PinmemberDudi Avramov20:56 11 Feb '06  
GeneralRe: Visual Studio 2005 Driver Wizard? PinmemberFrontier2:57 12 Feb '06  
GeneralRe: Visual Studio 2005 Driver Wizard? PinmemberAssarbad4:41 22 Dec '06  
Try my driver creation wizard: http://ddkwizard.assarbad.net/
 
Compatible with VS 2002 through 2005 and comes with an installer and manual Wink | ;)
 
// Oliver
QuestionWhere get the free DDK ? PinmemberRedaemon6:03 20 Jan '06  
Generalddkroot Pinmemberamirp6:27 21 Jun '05  
GeneralRe: ddkroot PinmemberDudi Avramov1:16 27 Jun '05  
Generalcustom wizard question Pinmemberwangxuan200523:09 6 Jun '05  
GeneralMy DriverWizard based on your code! Pinmembercjim15:21 27 Feb '05  
GeneralGreat PinmemberGeorgi Petrov3:19 20 Aug '04  
GeneralRe: Great PinmemberDudi Avramov21:09 21 Aug '04  
GeneralRe: Great PinmemberGeorgi Petrov1:00 26 Aug '04  
GeneralRe: Great PinmemberDudi Avramov20:49 28 Aug '04  
Generalerror C2061: syntax error : identifier 'IBuildProject' Pinmemberoff18:31 12 Jan '03  
GeneralRe: error C2061: syntax error : identifier 'IBuildProject' PinmemberDudi Avramov5:29 13 Jan '03  
GeneralRe: error C2061: syntax error : identifier 'IBuildProject' Pinmemberoff16:20 26 Jan '03  
GeneralRe: error C2061: syntax error : identifier 'IBuildProject' PinmemberDudi Avramov23:48 27 Jan '03  
GeneralRe: error C2061: syntax error : identifier 'IBuildProject' PinsussAnonymous14:13 29 Apr '03  
GeneralRe: error C2061: syntax error : identifier 'IBuildProject' PinsussAnonymous23:32 8 Mar '04  
GeneralRe: error C2061: syntax error : identifier 'IBuildProject' PinmemberSamirSSSS23:45 15 Mar '04  
GeneralRe: error C2061: syntax error : identifier 'IBuildProject' PinmemberSamirSSSS1:01 16 Mar '04  
GeneralRe: error C2061: syntax error : identifier 'IBuildProject' Pinmembermaneater_man1:32 31 May '05  
GeneralNice article! Pinmembermoliate4:37 10 Jan '03  
Generalscreen shot PinmemberAhmed Ismaiel Zakaria8:29 30 Dec '02  

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Mobile
Web04 | 2.5.120529.1 | Last Updated 30 Dec 2002
Article Copyright 2002 by Dudi Avramov
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid