Click here to Skip to main content
Click here to Skip to main content

A DDK's project wizard for VC2003

, 14 Nov 2003 CPOL
Rate this:
Please Sign up or sign in to vote.
A DDK's project wizard for VC2003.

Introduction

I used command line to compile DDK driver, but never got used to it. So I thought, why not write a wizard to do that.

So I did, and can compiled DDK's example and even WinpCap's NDIS driver.

Background

I stole some QuickSYS' files, and I appreciate the author very much.

Using the code

First, you may have to install DDK. This Wizard depends on the environment variable "ddkroot". If you want to build NDIS driver, please add NDIS.lib to your project.

For common use, just create a new project, choose the "DDK wizard", and press button "Finish", and then everything is OK.

If you want to compile the DDK's examples, you may refer to one file named "sources" in the example directory. Some macros are defined in that file.

For example. you may want to compile DDK's Passthru sample:

  1. Create a new project using this wizard, and delete the c and h file which is created by wizard, because we don't need them now.
  2. Copy the files(*.c, *.h, *.rc) from ntddk\src\network\ndis\passthru to the project directory.
  3. Add these files to the project.
  4. File "sources" are like the following:
    //...
    TARGETNAME=PASSTHRU
    TARGETPATH=obj 
    TARGETTYPE=DRIVER 
    TARGETLIBS=$(DDK_LIB_PATH)\ndis.lib 
    C_DEFINES=$(C_DEFINES) -DNDIS40 -DNDIS_MINIPORT_DRIVER -DNDIS40_MINIPORT 
    INCLUDES=..\..\inc 
    SOURCES= passthru.c \ protocol.c \ miniport.c \ passthru.rc 
    //...

So now you know what to do next?

Add NDIS.LIB to your project, add NDIS40, NDIS_MINIPORT_DRIVER, NDIS40_MINIPORT to pre-compile macros. And then build debug and release, you will get success except some warnings.

Points of Interest

This is my first DDK wizard, and DDK is hard for me to master. So this wizard can't be very good. I tested it all in WIN2K DDK. If I have enough time, I will write a NDIS project wizard. May support NIC, IM, TDI or so.

Finally, sorry for my poor English.

History

11-07-2003 - the wizard script can run now.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

SevenCat
Web Developer
China China
i have a dog.
i'm working on a game.
i 'm 中国江苏人。

Comments and Discussions

 
QuestionCompilation Unsuccesfull, Please Help. Pinmemberbnc20-Sep-08 23:03 
Joke你很强! Pinmemberbetree17-Sep-08 17:43 
General如何设置SevenCatDDK向导! Pinmembersusandy6-Mar-07 21:53 
QuestionWould you like something more generic? PinmemberAssarbad27-Oct-06 17:10 
GeneralYou GOOD PinmemberGeorgi Petrov15-Sep-06 2:49 
Generalvirtual sound card driver PinmemberAshok Jaiswal4-Sep-06 0:37 
GeneralPlease upgrade it [modified] PinmemberAli Tavakol15-Jul-06 3:56 
GeneralRe: Please upgrade it PinmemberSevenCat4-Sep-06 0:41 
GeneralGreat Article Pinmemberwwhh3934-Jun-06 22:03 
GeneralRe: Great Article Pinmembercdh92826-Jun-06 3:15 
GeneralDDK PinmemberTijo Joseph21-Nov-04 21:52 
GeneralRe: DDK PinmemberSevenCat22-Nov-04 5:06 
QuestionIt works, How you did this???? PinmemberGeorgi Petrov20-Aug-04 5:29 
AnswerRe: It works, How you did this???? PinmemberGeorgi Petrov20-Aug-04 5:35 
GeneralRe: It works, How you did this???? PinmemberSevenCat22-Aug-04 16:30 
GeneralRe: It works, How you did this???? PinmemberGeorgi Petrov26-Aug-04 1:50 
Generalunresolved external symbol __load_config_used Pinmemberpro29-Jul-04 1:08 
GeneralRe: unresolved external symbol __load_config_used Pinmemberjeremysay26-Apr-05 8:13 
GeneralRe: unresolved external symbol __load_config_used Pinmembersuperbinny27-Jul-05 23:50 
GeneralRe: unresolved external symbol __load_config_used PinmemberBocave25-Jun-07 5:35 
GeneralRe: unresolved external symbol __load_config_used PinmemberVincentKao2-Jul-07 4:39 
GeneralNice Idea Pinmemberbfadi16-Nov-03 5:23 
GeneralRe: Nice Idea PinmemberSevenCat17-Nov-03 3:46 
GeneralRe: Nice Idea Pinmemberbfadi18-Nov-03 12:51 
GeneralRe: Nice Idea PinmemberSevenCat18-Nov-03 20:53 

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
Web02 | 2.8.141223.1 | Last Updated 15 Nov 2003
Article Copyright 2003 by SevenCat
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid