Wednesday, June 10, 2009

Develop your Drivers under Visual Studio !

sounds like new things in driver development hom ?!
yes, that's it, you read right, once again a new change in the driver development world .

before, when you want develop a driver under your windows NT based box, you have many problems like Compiling, preparing for MAKEFILE and also SOURCES files, after all you must go to DDK checked/Free envirenment and enter in the your driver's project directory then issue the "Build" command and may see lots of errors some of them related to syntax, something related to directory naming and such things like that and it may be confuse you for times.
you may know, there was no specific IDE (integrated Development Environment) for developing windows drivers and every time and many times you launch notepad and start to writing your own driver, but now things changed, now there's a new IDE dedicated to Driver development under DDK architecture, you can use it for many driver development purposes . ok let's explore some of it's features,
first you can Download it free with source code include (an open source project) from here, it's very tiny and if you one of guys or even girls that have no access to DSL connection you can download it easily.

after downloading it, you must have Visual Studio 2008/2005 not old Visual Studio 6.0, when you launch the setup you will see some options that need to configure them out .
when you install and configure it out correctly you can launch your visual studio and then select your driver project which added to projects section,

then you can specify a name for your project




we suppose the driver's project name is HelloWorld . then we start to create the project,



you can see what's the easy means ! it was generate all the source code for a hello world application automatically, the source file can appear such thing.
if you remind, in DDK console complilation when we want to compile the source code we must do 2 thing, first write the MAKEFILE which points to MAKEFILE.def in the DDK directory, and then add a SOURCES file which include our source's files .
after this two long work, we must simply issue the BUILD command from checked/free environment .
now these steps just need two key Ctrl+F5 keys, when you press them, if your application has no error then you see a Dialog Box which say it's not possible to execute your .Sys file and it's right !
it's a good news which tell you, your driver was made !
after this simply step you'll follow the driver's path, give it to Huglond's InstDrv and then you can see the driver's output with DebugView ( a kernel level Debug Viewer ) .


if you are a driver developer you can understand how much this work is worthy .
thanks to it's developer basiz :)

No comments:

Post a Comment