Tech Support > Microsoft Windows > Drivers > Windows 2000 and Win XP compatible driver
Windows 2000 and Win XP compatible driver
Posted by wilhelm.lundgren@gmail.com on August 8th, 2006


Hi,

I am currently developing a USB driver that should support win2k and
winxp.

My questions is if i have to create two different drivers built with
the OS specific include directories in the DDK. Or can i choose for
example to use all includes from xp directories and then run that
driver on win2k as well without any worries. This is how i am doing it
right now, and it works, im just wondering what the correct approach
would be?

Regards
Wilhelm Lundgren

Posted by Vladimir Zinin on August 8th, 2006


In this case it's better to build a driver for w2k platform.

--
Best regards,
Vladimir Zinin
mailto:vzinin@gmail.com


wilhelm.lundgren@gmail.com wrote:

Posted by wilhelm.lundgren@gmail.com on August 8th, 2006


Thanks for the answer,

Why is it better in this case? What cases are ok ?

Wilhelm
Vladimir Zinin skrev:


Posted by Vladimir Zinin on August 8th, 2006


WinXP has more more expanded api then w2k. Therefore it will be possible
that a driver will have a call of function which does not exist in w2k.
And the call of such function can be implicit, for example from code of
statically linked system libraries or from inline api functions.
But if your driver, which has been built under wxp, successfully works
on w2k platform then it is possible to use it.

--
Best regards,
Vladimir Zinin
mailto:vzinin@gmail.com

wilhelm.lundgren@gmail.com wrote:

Posted by Gary G. Little on August 8th, 2006


And since KMDF 1.1 supports 2000 you should use it for driver development.

--
The personal opinion of
Gary G. Little


"Vladimir Zinin" <vzinin@gmail.com> wrote in message
news:OBeGc7tuGHA.1284@TK2MSFTNGP05.phx.gbl...


Posted by wilhelm.lundgren@gmail.com on August 8th, 2006


Thanks again, going with win2k.

/Wilhelm

Gary G. Little skrev:


Posted by Maxim S. Shatskih on August 8th, 2006


I would create w2k binary only, it will run fine on XP and 2003.

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@storagecraft.com
http://www.storagecraft.com



Similar Posts