Tech Support > Microsoft Windows > Drivers > UMDF and WinXP ?
UMDF and WinXP ?
Posted by Roland on August 24th, 2006


Hi,
do UMDF-USB drivers run on WinXP ? I am a little confused because the
statements are contradictory. On the Microsoft website I read something like
"Yes, UMDF runs on Vista and WinXP" but in the documentation acompanying the
WDK5483 it reads "UMDF is curently only supported on Windows Vista".
And when I try to build one of the UMDF-samples that come with the WDK (for
the WinXP build environment !) the build process aborts because "the OS is
not supported".

I would really like to use the UMDF because this is my first attempt to
write a Windows driver and I don't need all the kernel stuff. But it has to
run on WinXP.

Posted by Ali on August 24th, 2006



Roland wrote:
Are you sure you are attempting to invoke the right build environment?
It is basically a kind of layer upon WDM object (NT structures as OO
does not exist in OS world) which are in fact OS objects that we use to
manipulate back in good NT drivers days!


ali
..


Posted by Don Burn on August 24th, 2006



"Ali" <abdulrazaq@gmail.com> wrote in message
to provide a cleaner and simpler interface. UMDF is a lot more with a
driver that redirects requests to user space and a user space service
environment to run the driver and filters in.

Note: your comments about WDM objects are really confused, WDM is the NT
driver model with PnP added and some functions removed, nowadays WDM and NT
driver model are the same.


--
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
http://www.windrvr.com
Remove StopSpam from the email to reply





Posted by Ali on August 24th, 2006



Don Burn wrote:

Doh! Not again (Though it is always good to hear from Don with his
sharp knife of positive criticism).
Any way lets define UMDF. To me its something that take cares of driver
gadgets and you don't bother to consider details of hell things i.e.
TLB entries , PnP management , Power Management etc . etc..

And what is the KMDF? Ah! Just a WDM version with little more goodies
such were introduced from NT driver model to WDM i.e. not need for
symbolic link just generic device interfaces , more structured like
having a addDecvice routine to take care of lot of things ( which is
not at elevated level where as DriverEntry is at elevated IRQ)

Oh sweet NT drivers , a one little mistake would cause havoc! very
straight direct calls to OS entities. But the way to customize OS
behavior because you are talking to the kernel directly without any
layer (WDM , UMDF ,KMDF).


ali


Posted by Roland on August 24th, 2006


Hi Ali,

thanks for your quick response. Nice to see that there is someone who can
help.

As for the build environment : Since the target for my UMDF-driver is WinXP
I selected the "Windows XP x86 Checked Build Environment". The KMDF examples
compile ok with this setting - but for building the UMDF examples I have to
select one of the "Windows Vista and Windows Server Longhorn" build
environments. The build works out ok but I don't suppose this so generated
driver runs on WinXP ?



Posted by Don Burn on August 24th, 2006


Sorry, but you have this very confused:

UMDF - an environement to move protocol based drivers (i.e. busses like USB)
to user space, where they are less likely to do harm. A UMDF driver can
crash without wiping out the OS. The UMDF driver model is based on the KMDF
driver model.

KMDF - a new driver model handles much of the boilerplate that has grown up
because of the complexities of power management and plug and play. The
model also reflects the experiences of 10 years of NT driver development.
It is not a WDM model, but it lets WDM show through. It does take care of
much of the PnP and Power, but even there you need to handle things. It
also handles things like cancelation, WMI and a number of other items that
have added complexity to drivers.

WDM - typically used to indicate a driver with PnP and Power support, but
has also been used to indicate a driver that was portable back to Windows
98. Yes these are complex drivers, the PnP and Power support were add ons
that until people started using a lot, the true level of complexity was not
known. The support routines were added to from the legacy model, but
nothing was removed (though a lot was not recommended) and there was no
magic layer as you imply.

Legacy drivers - what you are referring to as NT driver. These don't have
power management or PnP, so they are limited these days to software only
kernel extensions.


--
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
http://www.windrvr.com
Remove StopSpam from the email to reply




"Ali" <abdulrazaq@gmail.com> wrote in message



Posted by Ali on August 24th, 2006



Roland wrote:

Don! I did say the same thing , didn't i? though I wasn't that
explanatory as you! Thanks for that.

Friend if you compile a driver on XP build then it should work on Vista
without any extra pain and if you are building in Vista environment
then you need to see this Doron's post here
http://blogs.msdn.com/doronh/archive...13/550844.aspx to fixing
the issue that are new to Vista!

Well Don is in this thread and he is right person talking here, I think
you need to be more elaborative about your problem.


ali


Posted by Don Burn on August 24th, 2006


Hopefully one of the UMDF team will jump in, but I suspect that at present
UMDF is not available on Windows XP. There are a lot of components for UMDF
and IIRC their is some kernel mods. I know it will be supported but the
question is when.


--
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
http://www.windrvr.com
Remove StopSpam from the email to reply


"Roland" <Roland@discussions.microsoft.com> wrote in message
news:B7658CAE-03A2-4EE9-9760-6EB24057C61F@microsoft.com...


Posted by Ali on August 24th, 2006



Don Burn wrote:
Are you try to pass a comment that UMDF and KDF are for *only* Vista?


ali


Posted by Ali on August 24th, 2006



Don Burn wrote:
Are you try to pass a comment that UMDF and KDF are for *only* Vista?
how come;-)

ali


Posted by Don Burn on August 24th, 2006


From: "Ali" <abdulrazaq@gmail.com>
No KMDF is not only Vista, KMDF is supported back to Windows 2000. But UMDF
has a lot of infastructure pieces and it is possible that Windows XP does
not have all the support for the UMDF components.

As I tried to note in the previous posts, KMDF and UMDF while both part of
the WDF are not the same thing by any means. Creating an environment that
allows drivers complete with filters to be written in user space, but
intergrate into the existing driver stack model is a notable achievement.

Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
http://www.windrvr.com
Remove StopSpam from the email to reply



Posted by Doron Holan [MS] on August 25th, 2006


UMDF will support XP, although the current WDKs do not have the necessary XP
runtime in them for you to tes on XP. Samples should be built under the
Vista build environments, even for XP.
You can, however, download the UMDF 1.0 Beta bits from the same connect site
as the WDK and work with those on XP. The driver should also run on Vista
when Vista comes out.

d

--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.


"Roland" <Roland@discussions.microsoft.com> wrote in message
news:37AFD68E-1BCD-45AC-8789-F72BC3D08F18@microsoft.com...


Posted by Ali on August 25th, 2006



Doron Holan [MS] wrote:
Then what is this wdfmgr.exe doing here on my XP SP2 machine?


ali


Posted by Skywing [MVP] on August 25th, 2006


It's a stripped down version that only supports a few specific portable
media devices for Windows Media Player, IIRC.

--
Ken Johnson (Skywing)
Windows SDK MVP

"Ali" <abdulrazaq@gmail.com> wrote in message
news:1156522476.214401.238100@75g2000cwc.googlegro ups.com...


Posted by Doron Holan [MS] on August 26th, 2006


that is correct.

d

--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.


"Skywing [MVP]" <skywing_NO_SPAM_@valhallalegends.com> wrote in message
news:uSi$ExGyGHA.3488@TK2MSFTNGP02.phx.gbl...


Posted by Ali on August 26th, 2006



Doron Holan [MS] wrote:

http://support.microsoft.com/default...b;en-us;892552

SNIP from above link:
The Windows User Mode Driver Framework service is a driver component
that is used by Windows Media Player 10. The Windows User Mode Driver
Framework service supports synchronization of content with hardware
players. For example, an MP3 device is a hardware player.

So isn't that something like UMDF 1.0 Beta bits thing?


ali


Posted by Doron Holan [MS] on August 26th, 2006


the UMDF that shipped with WMP 10 was a private internal release , not
public. you need to use the UMDF bits that come with the WDK.

d

--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.


"Ali" <abdulrazaq@gmail.com> wrote in message
news:1156578753.879879.118350@i3g2000cwc.googlegro ups.com...