Re: Compiler bug in the DDK--be aware of it



kalden wrote:
I am new to driver development. Can you actually build drivers with
the visual studio 2005 C compiler, or did you compile that piece of
code just to show the bug in the DDK build environment?

To answer you question, yes, you can.

There will be many people here (some experts) who will tell you not to.
Do as you feel appropriate.

Set the Linker /SUBSYSTEM:NATIVE and make /ENTRY:DriverEntry

If you leave off /WDM and don't initialize pDriverObject->AddDevice
pointer (in DriverEntry) then your driver will be regarded as a
"legacy" non-PNP NT-type driver, loadable as a driver service using
StartService, etc.

There are other things like making sure you are #includ'ing the right
headers and linking in the right .LIBS, but that's the fun part.

I build my driver using VS 2005 IDE with no problems.

-Le Chaud Lapin-

.



Relevant Pages

  • Re: Using GET_CONFIGURATION_IOCTL_INPUT in an application.
    ... It is recommended to use the compiler that is shipped with the DDK to build ... Even if you would successful in building your driver with the VC++ ... We want this application not to execute from any media other than ... "Compiler version not supported by Windows DDK" error. ...
    (microsoft.public.development.device.drivers)
  • Re: Building a device driver using VC6 and VC2005
    ... other than the ddk compiler and linker is a question I would like to throw ... configured appropriately for building a device driver ... ...
    (microsoft.public.development.device.drivers)
  • Re: build error with KdPrintEx
    ... fine with the same XP checked build environment. ... # ensure that said build environment is at least Windows XP ... # not a DDK environment, probably RAZZLE, so build ... I am using KdPrintEx in my driver but i keeep getting the ...
    (microsoft.public.development.device.drivers)
  • Re: build error with KdPrintEx
    ... Ntddk.h for now is required only for KdPrintEx but wdm.h ofcourse has many ... fine with the same XP checked build environment. ... # not a DDK environment, probably RAZZLE, so build ... I am using KdPrintEx in my driver but i keeep getting the ...
    (microsoft.public.development.device.drivers)
  • Re: How to write a driver for unsupported USB joystick?
    ... The ddk is free, ... what MS compiler do you think about? ... >>> recognized, i dont have any problem, it's just that this joystick is ... >>> develop a driver, but i dont know how to. ...
    (microsoft.public.windowsxp.device_driver.dev)