Prev: Track SRBs
Next: develop driver to read cpu MSRs
From: Jeff on 25 Jan 2010 14:21 Hi, I am looking at a device driver we have that was built 6 years ago. I need to make a change, but I am not sure how to build this thing. I have a .c file and a .h file. Some comments tell me this is a kernal-mode driver and that it is a windows driver model driver. I have visual c++ 7.0 (.NET). Any help or hints in the right direction would be appreciated.
From: Don Burn on 25 Jan 2010 14:26 It is a little old, but check out http://www.microsoft.com/whdc/driver/foundation/DrvDev_Intro.mspx for how to build it. You will need the WDK see http://www.microsoft.com/whdc/DevTools/WDK/WDKpkg.mspx -- Don Burn (MVP, Windows DKD) Windows Filesystem and Driver Consulting Website: http://www.windrvr.com Blog: http://msmvps.com/blogs/WinDrvr Remove StopSpam to reply "Jeff" <Jeff(a)discussions.microsoft.com> wrote in message news:F22063FE-5AD6-4740-884A-EEC5479AC9E6(a)microsoft.com... > Hi, > I am looking at a device driver we have that was built 6 years ago. I > need > to make a change, but I am not sure how to build this thing. I have a .c > file and a .h file. Some comments tell me this is a kernal-mode driver > and > that it is a windows driver model driver. > > I have visual c++ 7.0 (.NET). > > Any help or hints in the right direction would be appreciated. > > __________ Information from ESET NOD32 Antivirus, version of virus > signature database 4805 (20100125) __________ > > The message was checked by ESET NOD32 Antivirus. > > http://www.eset.com > > > __________ Information from ESET NOD32 Antivirus, version of virus signature database 4805 (20100125) __________ The message was checked by ESET NOD32 Antivirus. http://www.eset.com
From: Jeff on 25 Jan 2010 15:03 By the way, if it helps any, I have the source file included in my Visual C++ project (which is the way I received the project) but its not getting compiled. For instance, if I remove semicolons from the .c file, the project still builds ok. "Jeff" wrote: > Hi, > I am looking at a device driver we have that was built 6 years ago. I need > to make a change, but I am not sure how to build this thing. I have a .c > file and a .h file. Some comments tell me this is a kernal-mode driver and > that it is a windows driver model driver. > > I have visual c++ 7.0 (.NET). > > Any help or hints in the right direction would be appreciated.
From: Jeff on 25 Jan 2010 16:00 I have a folder called: C:\DDK_NT is this the DDK that I will need? If so, how can I "link to it" so I dont have to finish this download of the ISO? "Don Burn" wrote: > It is a little old, but check out > http://www.microsoft.com/whdc/driver/foundation/DrvDev_Intro.mspx for how to > build it. You will need the WDK see > http://www.microsoft.com/whdc/DevTools/WDK/WDKpkg.mspx > > > -- > Don Burn (MVP, Windows DKD) > Windows Filesystem and Driver Consulting > Website: http://www.windrvr.com > Blog: http://msmvps.com/blogs/WinDrvr > Remove StopSpam to reply > > > > > "Jeff" <Jeff(a)discussions.microsoft.com> wrote in message > news:F22063FE-5AD6-4740-884A-EEC5479AC9E6(a)microsoft.com... > > Hi, > > I am looking at a device driver we have that was built 6 years ago. I > > need > > to make a change, but I am not sure how to build this thing. I have a .c > > file and a .h file. Some comments tell me this is a kernal-mode driver > > and > > that it is a windows driver model driver. > > > > I have visual c++ 7.0 (.NET). > > > > Any help or hints in the right direction would be appreciated. > > > > __________ Information from ESET NOD32 Antivirus, version of virus > > signature database 4805 (20100125) __________ > > > > The message was checked by ESET NOD32 Antivirus. > > > > http://www.eset.com > > > > > > > > > > __________ Information from ESET NOD32 Antivirus, version of virus signature database 4805 (20100125) __________ > > The message was checked by ESET NOD32 Antivirus. > > http://www.eset.com > > > > > . >
From: Don Burn on 25 Jan 2010 16:21
Does the directory that had the files in it have a file named SOURCES and second named MAKEFILE? If so you want to: 1. Open up a command line prompt 2. Set the directory to the directory where the files are located 3. Set the path to include the C:\DDK_NT\bin in it 4. Issue a setenv.bat command (the arguments depend on the version of the DDK but without args it displays usage) 5. Issue build -cefbw which will rebuild the driver. Note: you do want to download the WDK. The DDK is obsolete and you are not getting the current tuols and headers. Once it is downloaded you are likely to find that calls used in the driver are obsolite. Also once you have the WDK installed issue: prefast build -cefbw Which will catch a lot of common driver bugs. Finally depending on the type of driver and how many changes you are making consider rewriting it in KMDF which is the replacement for WDM. -- Don Burn (MVP, Windows DKD) Windows Filesystem and Driver Consulting Website: http://www.windrvr.com Blog: http://msmvps.com/blogs/WinDrvr Remove StopSpam to reply "Jeff" <Jeff(a)discussions.microsoft.com> wrote in message news:BCD73C0C-418F-49EB-9165-79694D096ABD(a)microsoft.com... >I have a folder called: > > C:\DDK_NT > > is this the DDK that I will need? If so, how can I "link to it" so I dont > have to finish this download of the ISO? > > "Don Burn" wrote: > >> It is a little old, but check out >> http://www.microsoft.com/whdc/driver/foundation/DrvDev_Intro.mspx for how >> to >> build it. You will need the WDK see >> http://www.microsoft.com/whdc/DevTools/WDK/WDKpkg.mspx >> >> >> -- >> Don Burn (MVP, Windows DKD) >> Windows Filesystem and Driver Consulting >> Website: http://www.windrvr.com >> Blog: http://msmvps.com/blogs/WinDrvr >> Remove StopSpam to reply >> >> >> >> >> "Jeff" <Jeff(a)discussions.microsoft.com> wrote in message >> news:F22063FE-5AD6-4740-884A-EEC5479AC9E6(a)microsoft.com... >> > Hi, >> > I am looking at a device driver we have that was built 6 years ago. I >> > need >> > to make a change, but I am not sure how to build this thing. I have a >> > .c >> > file and a .h file. Some comments tell me this is a kernal-mode driver >> > and >> > that it is a windows driver model driver. >> > >> > I have visual c++ 7.0 (.NET). >> > >> > Any help or hints in the right direction would be appreciated. >> > >> > __________ Information from ESET NOD32 Antivirus, version of virus >> > signature database 4805 (20100125) __________ >> > >> > The message was checked by ESET NOD32 Antivirus. >> > >> > http://www.eset.com >> > >> > >> > >> >> >> >> __________ Information from ESET NOD32 Antivirus, version of virus >> signature database 4805 (20100125) __________ >> >> The message was checked by ESET NOD32 Antivirus. >> >> http://www.eset.com >> >> >> >> >> . >> > > __________ Information from ESET NOD32 Antivirus, version of virus > signature database 4805 (20100125) __________ > > The message was checked by ESET NOD32 Antivirus. > > http://www.eset.com > > > __________ Information from ESET NOD32 Antivirus, version of virus signature database 4805 (20100125) __________ The message was checked by ESET NOD32 Antivirus. http://www.eset.com |