Click here to Skip to main content
11,709,844 members (54,481 online)
Click here to Skip to main content

Driver Wizard

, 29 Dec 2002 127.7K 3.1K 63
Rate this:
Please Sign up or sign in to vote.
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

Share

About the Author

Dudi Avramov
Web Developer
Israel Israel
No Biography provided

You may also be interested in...

Comments and Discussions

 
Questiondriver wizzard program Pin
Member 900072719-May-12 13:56
memberMember 900072719-May-12 13:56 
QuestionVisual Studio 2005 Driver Wizard? Pin
Frontier9-Feb-06 2:30
memberFrontier9-Feb-06 2:30 
AnswerRe: Visual Studio 2005 Driver Wizard? Pin
Dudi Avramov11-Feb-06 20:56
memberDudi Avramov11-Feb-06 20:56 
GeneralRe: Visual Studio 2005 Driver Wizard? Pin
Frontier12-Feb-06 2:57
memberFrontier12-Feb-06 2:57 
GeneralRe: Visual Studio 2005 Driver Wizard? Pin
Assarbad22-Dec-06 4:41
memberAssarbad22-Dec-06 4:41 
QuestionWhere get the free DDK ? Pin
Redaemon20-Jan-06 6:03
memberRedaemon20-Jan-06 6:03 
Generalddkroot Pin
amirp21-Jun-05 6:27
memberamirp21-Jun-05 6:27 
GeneralRe: ddkroot Pin
Dudi Avramov27-Jun-05 1:16
memberDudi Avramov27-Jun-05 1:16 
Generalcustom wizard question Pin
wangxuan20056-Jun-05 23:09
memberwangxuan20056-Jun-05 23:09 
I'm making my own appwiz and the functionality is just fine.
it adds all neccesary files and all. But the solution explorer is a mess. I want my project neatly sorted in folders and subfolder, class by class.
how i Group project files into folders?

I can't find any info on doing this or another appwizard that makes use of it.

So does anyone know how to approach this?

GeneralMy DriverWizard based on your code! Pin
cjim27-Feb-05 15:21
membercjim27-Feb-05 15:21 
GeneralGreat Pin
Georgi Petrov20-Aug-04 3:19
memberGeorgi Petrov20-Aug-04 3:19 
GeneralRe: Great Pin
Dudi Avramov21-Aug-04 21:09
memberDudi Avramov21-Aug-04 21:09 
GeneralRe: Great Pin
Georgi Petrov26-Aug-04 1:00
memberGeorgi Petrov26-Aug-04 1:00 
GeneralRe: Great Pin
Dudi Avramov28-Aug-04 20:49
memberDudi Avramov28-Aug-04 20:49 
Generalerror C2061: syntax error : identifier 'IBuildProject' Pin
off12-Jan-03 18:31
memberoff12-Jan-03 18:31 
GeneralRe: error C2061: syntax error : identifier 'IBuildProject' Pin
Dudi Avramov13-Jan-03 5:29
memberDudi Avramov13-Jan-03 5:29 
GeneralRe: error C2061: syntax error : identifier 'IBuildProject' Pin
off26-Jan-03 16:20
memberoff26-Jan-03 16:20 
GeneralRe: error C2061: syntax error : identifier 'IBuildProject' Pin
Dudi Avramov27-Jan-03 23:48
memberDudi Avramov27-Jan-03 23:48 
GeneralRe: error C2061: syntax error : identifier 'IBuildProject' Pin
Anonymous29-Apr-03 14:13
sussAnonymous29-Apr-03 14:13 
GeneralRe: error C2061: syntax error : identifier 'IBuildProject' Pin
Anonymous8-Mar-04 23:32
sussAnonymous8-Mar-04 23:32 
GeneralRe: error C2061: syntax error : identifier 'IBuildProject' Pin
SamirSSSS15-Mar-04 23:45
memberSamirSSSS15-Mar-04 23:45 
GeneralRe: error C2061: syntax error : identifier 'IBuildProject' Pin
SamirSSSS16-Mar-04 1:01
memberSamirSSSS16-Mar-04 1:01 
GeneralRe: error C2061: syntax error : identifier 'IBuildProject' Pin
maneater_man31-May-05 1:32
membermaneater_man31-May-05 1:32 
GeneralNice article! Pin
moliate10-Jan-03 4:37
membermoliate10-Jan-03 4:37 
Generalscreen shot Pin
Ahmed Ismaiel Zakaria30-Dec-02 8:29
memberAhmed Ismaiel Zakaria30-Dec-02 8:29 
GeneralRe: screen shot Pin
Dudi Avramov30-Dec-02 21:15
memberDudi Avramov30-Dec-02 21:15 

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.

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