WinUSB INF needs "UmdfServiceOrder" to install

I’ve created INF file for WinUSB/KMDF using MS example provided on MS page http://www.microsoft.com/whdc/device/connect/WinUsb_HowTo.mspx

The driver failed to install with error that UmdfServiceOrder in DDInstall.wdf is needed. When I included the missing line, driver installation completed successfuly

[USB_Install.Wdf]
KmdfService=WINUSB, WinUsb_Install
UmdfServiceOrder=WINUSB

As WinUSB is specified to use KMDF only, with the following

[WinUsb_Install]
KmdfLibraryVersion=1.5

why this line is needed?

Did you add a reference to the UMDF coinstaller? Which DLL are you listing as the coinstaller? WdfCoInstaller01005.dll (the KMDF coinstaller) or WUDFUpdate_01005.dll (the UMDF coinstaller)?

d

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@srce.hr
Sent: Tuesday, October 30, 2007 2:46 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] WinUSB INF needs “UmdfServiceOrder” to install

I’ve created INF file for WinUSB/KMDF using MS example provided on MS page http://www.microsoft.com/whdc/device/connect/WinUsb_HowTo.mspx

The driver failed to install with error that UmdfServiceOrder in DDInstall.wdf is needed. When I included the missing line, driver installation completed successfuly

[USB_Install.Wdf]
KmdfService=WINUSB, WinUsb_Install
UmdfServiceOrder=WINUSB

As WinUSB is specified to use KMDF only, with the following

[WinUsb_Install]
KmdfLibraryVersion=1.5

why this line is needed?


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

I’ve mentioned both coinsallers in the coinsaller section:

[CoInstallers_AddReg]
HKR,CoInstallers32,0x00010000,“WudfUpdate_01005.dll”,“WinUsbCoinstaller.dll”,“WdfCoInstaller01005.dll,WdfCoInstaller”
;HKR,CoInstallers32,0x00010000,“WinUSBCoInstaller.dll”,“WdfCoInstaller01005.dll,WdfCoInstaller”

[CoInstallers_CopyFiles]
WudfUpdate_01005.dll
WdfCoInstaller01005.dll
WinUSBCoInstaller.dll

Should I remove reference to WudfUpdate_01005.dll?

If you are not using UMDF, do not refer to the UMDF coinstaller. The UMDF is requiring the UmdfServiceOrder in the INF.

d

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@srce.hr
Sent: Tuesday, October 30, 2007 9:54 AM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] WinUSB INF needs “UmdfServiceOrder” to install

I’ve mentioned both coinsallers in the coinsaller section:

[CoInstallers_AddReg]
HKR,CoInstallers32,0x00010000,“WudfUpdate_01005.dll”,“WinUsbCoinstaller.dll”,“WdfCoInstaller01005.dll,WdfCoInstaller”
;HKR,CoInstallers32,0x00010000,“WinUSBCoInstaller.dll”,“WdfCoInstaller01005.dll,WdfCoInstaller”

[CoInstallers_CopyFiles]
WudfUpdate_01005.dll
WdfCoInstaller01005.dll
WinUSBCoInstaller.dll

Should I remove reference to WudfUpdate_01005.dll?


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

If I like to use WinUsb with UMDF do I have to mention UMDF coinstaller and use UmdfServiceOrder=WINUSB directive in the INF file as before?

Yes, if you want to write a umdf driver instead of talking to the driver directly from the application then you need to refer to the umdf coinstaller and have all of the appropriate entries/values in the INF

d

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@srce.hr
Sent: Tuesday, October 30, 2007 10:18 AM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] WinUSB INF needs “UmdfServiceOrder” to install

If I like to use WinUsb with UMDF do I have to mention UMDF coinstaller and use UmdfServiceOrder=WINUSB directive in the INF file as before?


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

xxxxx@srce.hr wrote:

If I like to use WinUsb with UMDF do I have to mention UMDF coinstaller and use UmdfServiceOrder=WINUSB directive in the INF file as before?

What does that mean – “use WinUsb with UMDF”? WinUsb is a driver, and
a UMDF thing is a driver. You would use one or the other, not both. If
you want to drive your device using WinUsb, then you don’t write a
driver. If you want to make it LOOK like you have a driver, just write
a plain, ordinary DLL that uses WinUsb.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.

Actually you do use both when writing a usb UMDF driver.

d

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Tim Roberts
Sent: Tuesday, October 30, 2007 11:43 AM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] WinUSB INF needs “UmdfServiceOrder” to install

xxxxx@srce.hr wrote:

If I like to use WinUsb with UMDF do I have to mention UMDF coinstaller and use UmdfServiceOrder=WINUSB directive in the INF file as before?

What does that mean – “use WinUsb with UMDF”? WinUsb is a driver, and
a UMDF thing is a driver. You would use one or the other, not both. If
you want to drive your device using WinUsb, then you don’t write a
driver. If you want to make it LOOK like you have a driver, just write
a plain, ordinary DLL that uses WinUsb.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer