Implemening Non WDM and WDM device driver

Hi All,

I have a driver which supports Non WDM and WDM. I
developed it to work for both Windows NT and Windows
XP.How can I distinguish in my driver regarding the
OS.

for ex, I have some methods(Survey bus,Claimresources
etc…) for NT purpose and like to compile it for
Windows NT and build NT driver.

for ex, I have some methods(adddevice,startdevice
etc…) for XP purpose and like to compile it for
Windows XpT and build XP driver.

So, How should I make the driver smart enough so that
it builds NT/XP versions. Can I use #ifdef.

Can any one of you provide more inputs.


Do you Yahoo!?
Yahoo! Platinum - Watch CBS’ NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

“Tom Pr” wrote in message news:xxxxx@ntdev…
>
> So, How should I make the driver smart enough so that
> it builds NT/XP versions. Can I use #ifdef.
>

(Coincidentally, there’s an article on just this topic in the coming version
of The NT Insider).

We use VER_PRODUCTBUILD (include ntverp.h) to distinguish among the various
operating systems.
NT V4 is 1381, Win2K is 2195, XP is 2600.

HTH,

Peter
OSR