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

Re: Windows 2000 and Win XP compatible driver by Vladimir

Vladimir
Tue Aug 08 04:38:53 CDT 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:
> 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
>

Re: Windows 2000 and Win XP compatible driver by wilhelm

wilhelm
Tue Aug 08 05:55:05 CDT 2006

Thanks for the answer,

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

Wilhelm
Vladimir Zinin skrev:

> 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:
> > 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
> >


Re: Windows 2000 and Win XP compatible driver by Vladimir

Vladimir
Tue Aug 08 06:36:15 CDT 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:
> Thanks for the answer,
>
> Why is it better in this case? What cases are ok ?
>
> Wilhelm

Re: Windows 2000 and Win XP compatible driver by Gary

Gary
Tue Aug 08 08:38:47 CDT 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...
> 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:
>> Thanks for the answer,
>>
>> Why is it better in this case? What cases are ok ?
>>
>> Wilhelm



Re: Windows 2000 and Win XP compatible driver by wilhelm

wilhelm
Tue Aug 08 09:23:48 CDT 2006

Thanks again, going with win2k.

/Wilhelm

Gary G. Little skrev:

> 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...
> > 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:
> >> Thanks for the answer,
> >>
> >> Why is it better in this case? What cases are ok ?
> >>
> >> Wilhelm


Re: Windows 2000 and Win XP compatible driver by Maxim

Maxim
Tue Aug 08 16:45:10 CDT 2006

> 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

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