Re: WUDFRd.sys is not present - win XP

resending inf file content as file attachment got rejected

;

; UsbRnd_4.inf - Install the USB R&D Bulk user-mode driver

;

[Version]

Signature=“$Windows NT$”

Class=Sample

ClassGuid={78A1C341-4539-11d3-B88D-00C04FAD5171}

Provider=%Comp%

DriverVer=02/26/2010,6.1.7600.16385

CatalogFile=wudf.cat

[Manufacturer]

%Comp%=Microsoft,NTx86

[Microsoft.NTx86]

%UsbDeviceName%=Usb_Install, USB\VID_1C06&PID_FFFE&mi_00

%UsbDeviceName%=Usb_Install, USB\VID_1C06&PID_FFFE

[ClassInstall32]

AddReg=SampleClass_RegistryAdd

[SampleClass_RegistryAdd]

HKR,%ClassName%

HKR,Icon,“-10”

[SourceDisksFiles]

UsbRnd_4.dll=1

WudfUpdate_01009.dll=1

WdfCoInstaller01009.dll=1

WinUsbCoinstaller2.dll=1

[SourceDisksNames]

1 = %MediaDescription%

; =================== UMDF UsbRnd Device ==================================

[Usb_Install.NT]

CopyFiles=UMDriverCopy

Include=WINUSB.INF ; Import sections from WINUSB.INF

Needs=WINUSB.NT ; Run the CopyFiles & AddReg directives for WinUsb.INF

[Usb_Install.NT.hw]

AddReg=OsrUsb_Device_AddReg

[Usb_Install.NT.Services]

AddService=WUDFRd,0x000001fa,WUDFRD_ServiceInstall ; flag 0x2 sets this as
the service for the device

AddService=WinUsb,0x000001f8,WinUsb_ServiceInstall ; this service is
installed because its a filter.

[Usb_Install.NT.Wdf]

KmdfService=WINUSB, WinUsb_Install

UmdfDispatcher=WinUsb

UmdfService=UsbRnd, UsbRnd_Install

UmdfServiceOrder=UsbRnd

[Usb.NT.CoInstallers]

AddReg=CoInstallers_AddReg

CopyFiles=CoInstallers_CopyFiles

[WinUsb_Install]

KmdfLibraryVersion = 1.9

[WUDFOsrUsbFx2_Install]

UmdfLibraryVersion=1.9.0

DriverCLSID = “{0865b2b0-6b73-428f-a3ea-2172832d6bfc}”

ServiceBinary = “%12%\UMDF\UsbRnd_4.dll”

[Usb_Device_AddReg]

HKR,“LowerFilters”,0x00010008,“WinUsb” ; FLG_ADDREG_TYPE_MULTI_SZ |
FLG_ADDREG_APPEND

[WUDFRD_ServiceInstall]

DisplayName = %WudfRdDisplayName%

ServiceType = 1

StartType = 3

ErrorControl = 1

ServiceBinary = %12%\WUDFRd.sys

LoadOrderGroup = Base

[WinUsb_ServiceInstall]

DisplayName = %WinUsb_SvcDesc%

ServiceType = 1

StartType = 3

ErrorControl = 1

ServiceBinary = %12%\WinUSB.sys

[CoInstallers_AddReg]

HKR,CoInstallers32,0x00010000,“WudfUpdate_01009.dll”,
“WinUsbCoinstaller2.dll”, “WdfCoInstaller01009.dll,WdfCoInstaller”

[CoInstallers_CopyFiles]

WudfUpdate_01009.dll

WdfCoInstaller01009.dll

WinUsbCoinstaller2.dll

[DestinationDirs]

UMDriverCopy=12,UMDF ; copy to driversMdf

CoInstallers_CopyFiles=11

[UMDriverCopy]

UsbRnd_4.dll

; =================== Generic ==================================

[Strings]

Comp=“My Company”

MediaDescription=“R&D Driver”

ClassName=“Sample Device”

WudfRdDisplayName=“Windows Driver Foundation - User-mode Driver Framework
Reflector”

UsbDeviceName=“R&D Test Driver”

WinUsb_SvcDesc=“WinUSB Driver”

On Wed, Mar 3, 2010 at 4:44 PM, My RAC Account wrote:

> Hi,
>
> I’m new to driver development. I’m trying to understand the basics. I need
> to develop a USB driver for our device.
> I modified osrfx2 umdf (step 4) sample driver and tried to install on XP. I
> used free build environment to build the binaries.
>
> When i tried to install the driver in XP, I’m getting the following error
> **
> Add Service: Binary “C:\WINDOWS\system32\DRIVERS\WUDFRd.sys” for service
> “WUDFRd” is not present.
> #E032 Error 0xe0000217: A service installation section in this INF is
> invalid.

>
> Do I need to install WUDFRd.sys explicitly before installing the driver? I
> cudnt find WUDFRd.sys under the drivers folder.
> I’ve not signed the driver. Will it be ignored or is it failing bcos of the
> unsigned driver? I’ve attached my inf file.
>
> I’m struggling with this please help. Thanks.
>
> The setupapi.log file says :
>
> #-166 Device install function: DIF_REGISTER_COINSTALLERS.
> #I056 Coinstallers registered.
> #-166 Device install function: DIF_INSTALLINTERFACES.
> #-011 Installing section [RndUsb_Install.NT.Interfaces] from
> “e:\testdrivers
> \usbrnd4\usbrnd_4.inf”.
> #I054 Interfaces installed.
> #-166 Device install function: DIF_INSTALLDEVICE.
> #I123 Doing full install of “USB\VID_1C06&PID_FFFE\000-0000”.
> #E360 An unsigned or incorrectly signed file
> “e:\testdrivers\usbrnd4\usbrnd_4.inf” for driver “
> R&D Test Driver” will be installed (Policy=Ignore). Error 0xe000022f: The
> third-party INF does
> not contain digital signature information.
> #-035 Processing service Add/Delete section [RndUsb_Install.NT.Services].
> #E339 Add Service: Binary “C:\WINDOWS\system32\DRIVERS\WUDFRd.sys” for
> service “WUDFRd” is not
> present.
> #E032 Error 0xe0000217: A service installation section in this INF is
> invalid.
> #E275 Error while installing services. Error 0xe0000217: A service
> installation section in this
> INF is invalid.
> #E122 Device install failed. Error 0xe0000217: A service installation
> section in this INF is
> invalid.
> #E157 Default installer failed. Error 0xe0000217: A service installation
> section in this INF is
> invalid.
> #I060 Set selected driver.
> #I125 Installing NULL driver for “USB\VID_1C06&PID_FFFE\000-0000”.
> #I121 Device install of “USB\VID_1C06&PID_FFFE\000-0000” finished
> successfully.
>
> Thanks,
> Lalitha.
>

Hi,

I’m new to driver development. I’m trying to understand the basics. I need to develop a USB driver for our device.
I modified osrfx2 umdf (step 4) sample driver and tried to install on XP. I used free build environment to build the binaries.

When i tried to install the driver in XP, I’m getting the following error

Add Service: Binary “C:\WINDOWS\system32\DRIVERS\WUDFRd.sys” for service “WUDFRd” is not present.
#E032 Error 0xe0000217: A service installation section in this INF is invalid.

Do I need to install WUDFRd.sys explicitly before installing the driver? I cudnt find WUDFRd.sys under the drivers folder.
I’ve not signed the driver. Will it be ignored or is it failing bcos of the unsigned driver? I’ve attached my inf file.

I’m struggling with this please help. Thanks.

The setupapi.log file says :

#-166 Device install function: DIF_REGISTER_COINSTALLERS.
#I056 Coinstallers registered.
#-166 Device install function: DIF_INSTALLINTERFACES.
#-011 Installing section [RndUsb_Install.NT.Interfaces] from “e:\testdrivers
\usbrnd4\usbrnd_4.inf”.
#I054 Interfaces installed.
#-166 Device install function: DIF_INSTALLDEVICE.
#I123 Doing full install of “USB\VID_1C06&PID_FFFE\000-0000”.
#E360 An unsigned or incorrectly signed file “e:\testdrivers\usbrnd4\usbrnd_4.inf” for driver "
R&D Test Driver" will be installed (Policy=Ignore). Error 0xe000022f: The third-party INF does
not contain digital signature information.
#-035 Processing service Add/Delete section [RndUsb_Install.NT.Services].
#E339 Add Service: Binary “C:\WINDOWS\system32\DRIVERS\WUDFRd.sys” for service “WUDFRd” is not
present.
#E032 Error 0xe0000217: A service installation section in this INF is invalid.
#E275 Error while installing services. Error 0xe0000217: A service installation section in this
INF is invalid.
#E122 Device install failed. Error 0xe0000217: A service installation section in this INF is
invalid.
#E157 Default installer failed. Error 0xe0000217: A service installation section in this INF is
invalid.
#I060 Set selected driver.
#I125 Installing NULL driver for “USB\VID_1C06&PID_FFFE\000-0000”.
#I121 Device install of “USB\VID_1C06&PID_FFFE\000-0000” finished successfully.

this section
[Usb.NT.CoInstallers]

should be
[Usb_Install.NT.CoInstallers]

d

Hi Doron,

Thank you very much for the quick reply. I appreciate for pointing out the mistake in inf file exactly.
I changed my inf file as per your suggestion and tried installing and got thru of the error ‘WUDFRd.sys is not present’. But, I’m getting another error message saying
#E151 Coinstaller 1 of 3 failed. Error 0xe0000102: The required line was not found in the INF.’

I have all the 3 coinstallers “WudfUpdate_01009.dll”, “WinUsbCoinstaller2.dll”, “WdfCoInstaller01009.dll” in my installation directory. and I wonder why I’m i getting this error message.

setupapi.log :
#I058 Selected best compatible driver.
#-124 Doing copy-only install of “USB\VID_1C06&PID_FFFE\000-0000”.
#E360 An unsigned or incorrectly signed file “e:\testdrivers\usbrnd4\usbrnd_4.inf” for driver " R&D Test Driver" will be installed (Policy=Ignore). Error 0xe000022f: The third-party INF does not contain digital signature information.
#W187 Install failed, attempting to restore original files.
#E360 An unsigned or incorrectly signed file “e:\testdrivers\usbrnd4\usbrnd_4.inf” for driver " R&D Test Driver" will be installed (Policy=Ignore). Error 0xe000022f: The third-party INF does not contain digital signature information.
#-024 Copying file “e:\testdrivers\usbrnd4\UsbRnd_4.dll” to “C:\WINDOWS\system32\DRIVERS\UMDF\UsbRnd_4.dll”.
#E360 An unsigned or incorrectly signed file “e:\testdrivers\usbrnd4\usbrnd_4.inf” for driver " R&D Test Driver" will be installed (Policy=Ignore). Error 0xe000022f: The third-party INF does not contain digital signature information.
#-336 Copying file “e:\testdrivers\usbrnd4\WudfUpdate_01009.dll” to “C:\WINDOWS\system32\WudfUpdate_01009.dll” via temporary file “C:\WINDOWS\system32\SET27.tmp”.
#E360 An unsigned or incorrectly signed file “e:\testdrivers\usbrnd4\usbrnd_4.inf” for driver " R&D Test Driver" will be installed (Policy=Ignore). Error 0xe000022f: The third-party INF does not contain digital signature information.
#-336 Copying file “e:\testdrivers\usbrnd4\WdfCoInstaller01009.dll” to “C:\WINDOWS\system32\WdfCoInstaller01009.dll” via temporary file “C:\WINDOWS\system32\SET2A.tmp”.
#E360 An unsigned or incorrectly signed file “e:\testdrivers\usbrnd4\usbrnd_4.inf” for driver " R&D Test Driver" will be installed (Policy=Ignore). Error 0xe000022f: The third-party INF does not contain digital signature information.
#-336 Copying file “e:\testdrivers\usbrnd4\WinUsbCoinstaller2.dll” to “C:\WINDOWS\system32\WinUsbCoinstaller2.dll” via temporary file “C:\WINDOWS\system32\SET2B.tmp”.
#E360 An unsigned or incorrectly signed file “e:\testdrivers\usbrnd4\usbrnd_4.inf” for driver " R&D Test Driver" will be installed (Policy=Ignore). Error 0xe000022f: The third-party INF does not contain digital signature information.
#-166 Device install function: DIF_REGISTER_COINSTALLERS.
#I056 Coinstallers registered.
#-166 Device install function: DIF_INSTALLINTERFACES.
#-011 Installing section [Usb_Install.NT.Interfaces] from “e:\testdrivers\usbrnd4\usbrnd_4.inf”.
#I054 Interfaces installed.
#-166 Device install function: DIF_INSTALLDEVICE.
#E151 Coinstaller 1 of 3 failed. Error 0xe0000102: The required line was not found in the INF.

Would it be possible to share the contents of the file %windir%\setupact.log that correspond to the failed installation? Most probably, that log file will show the line that is missing.

Thanks,
Ilias

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@gmail.com
Sent: Thursday, March 04, 2010 10:27 AM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] Re: WUDFRd.sys is not present - win XP

Hi Doron,

Thank you very much for the quick reply. I appreciate for pointing out the mistake in inf file exactly.
I changed my inf file as per your suggestion and tried installing and got thru of the error ‘WUDFRd.sys is not present’. But, I’m getting another error message saying
#E151 Coinstaller 1 of 3 failed. Error 0xe0000102: The required line was not found in the INF.’

I have all the 3 coinstallers “WudfUpdate_01009.dll”, “WinUsbCoinstaller2.dll”, “WdfCoInstaller01009.dll” in my installation directory. and I wonder why I’m i getting this error message.

setupapi.log :
#I058 Selected best compatible driver.
#-124 Doing copy-only install of “USB\VID_1C06&PID_FFFE\000-0000”.
#E360 An unsigned or incorrectly signed file “e:\testdrivers\usbrnd4\usbrnd_4.inf” for driver " R&D Test Driver" will be installed (Policy=Ignore). Error 0xe000022f: The third-party INF does not contain digital signature information.
#W187 Install failed, attempting to restore original files.
#E360 An unsigned or incorrectly signed file “e:\testdrivers\usbrnd4\usbrnd_4.inf” for driver " R&D Test Driver" will be installed (Policy=Ignore). Error 0xe000022f: The third-party INF does not contain digital signature information.
#-024 Copying file “e:\testdrivers\usbrnd4\UsbRnd_4.dll” to “C:\WINDOWS\system32\DRIVERS\UMDF\UsbRnd_4.dll”.
#E360 An unsigned or incorrectly signed file “e:\testdrivers\usbrnd4\usbrnd_4.inf” for driver " R&D Test Driver" will be installed (Policy=Ignore). Error 0xe000022f: The third-party INF does not contain digital signature information.
#-336 Copying file “e:\testdrivers\usbrnd4\WudfUpdate_01009.dll” to “C:\WINDOWS\system32\WudfUpdate_01009.dll” via temporary file “C:\WINDOWS\system32\SET27.tmp”.
#E360 An unsigned or incorrectly signed file “e:\testdrivers\usbrnd4\usbrnd_4.inf” for driver " R&D Test Driver" will be installed (Policy=Ignore). Error 0xe000022f: The third-party INF does not contain digital signature information.
#-336 Copying file “e:\testdrivers\usbrnd4\WdfCoInstaller01009.dll” to “C:\WINDOWS\system32\WdfCoInstaller01009.dll” via temporary file “C:\WINDOWS\system32\SET2A.tmp”.
#E360 An unsigned or incorrectly signed file “e:\testdrivers\usbrnd4\usbrnd_4.inf” for driver " R&D Test Driver" will be installed (Policy=Ignore). Error 0xe000022f: The third-party INF does not contain digital signature information.
#-336 Copying file “e:\testdrivers\usbrnd4\WinUsbCoinstaller2.dll” to “C:\WINDOWS\system32\WinUsbCoinstaller2.dll” via temporary file “C:\WINDOWS\system32\SET2B.tmp”.
#E360 An unsigned or incorrectly signed file “e:\testdrivers\usbrnd4\usbrnd_4.inf” for driver " R&D Test Driver" will be installed (Policy=Ignore). Error 0xe000022f: The third-party INF does not contain digital signature information.
#-166 Device install function: DIF_REGISTER_COINSTALLERS.
#I056 Coinstallers registered.
#-166 Device install function: DIF_INSTALLINTERFACES.
#-011 Installing section [Usb_Install.NT.Interfaces] from “e:\testdrivers\usbrnd4\usbrnd_4.inf”.
#I054 Interfaces installed.
#-166 Device install function: DIF_INSTALLDEVICE.
#E151 Coinstaller 1 of 3 failed. Error 0xe0000102: The required line was not found in the INF.


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 saw the inf that you posted in a previous email.

The line “UmdfService=UsbRnd, UsbRnd_Install” tells the UMDF coinstaller to look for a section named UsbRnd_Install. However, the corresponding section in your inf is named [WUDFOsrUsbFx2_Install]. You need to change that to be [UsbRnd_Install].

Ilias

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Ilias Tsigkogiannis
Sent: Thursday, March 04, 2010 4:48 PM
To: Windows System Software Devs Interest List
Subject: RE: RE:[ntdev] Re: WUDFRd.sys is not present - win XP

Would it be possible to share the contents of the file %windir%\setupact.log that correspond to the failed installation? Most probably, that log file will show the line that is missing.

Thanks,
Ilias

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@gmail.com
Sent: Thursday, March 04, 2010 10:27 AM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] Re: WUDFRd.sys is not present - win XP

Hi Doron,

Thank you very much for the quick reply. I appreciate for pointing out the mistake in inf file exactly.
I changed my inf file as per your suggestion and tried installing and got thru of the error ‘WUDFRd.sys is not present’. But, I’m getting another error message saying
#E151 Coinstaller 1 of 3 failed. Error 0xe0000102: The required line was not found in the INF.’

I have all the 3 coinstallers “WudfUpdate_01009.dll”, “WinUsbCoinstaller2.dll”, “WdfCoInstaller01009.dll” in my installation directory. and I wonder why I’m i getting this error message.

setupapi.log :
#I058 Selected best compatible driver.
#-124 Doing copy-only install of “USB\VID_1C06&PID_FFFE\000-0000”.
#E360 An unsigned or incorrectly signed file “e:\testdrivers\usbrnd4\usbrnd_4.inf” for driver " R&D Test Driver" will be installed (Policy=Ignore). Error 0xe000022f: The third-party INF does not contain digital signature information.
#W187 Install failed, attempting to restore original files.
#E360 An unsigned or incorrectly signed file “e:\testdrivers\usbrnd4\usbrnd_4.inf” for driver " R&D Test Driver" will be installed (Policy=Ignore). Error 0xe000022f: The third-party INF does not contain digital signature information.
#-024 Copying file “e:\testdrivers\usbrnd4\UsbRnd_4.dll” to “C:\WINDOWS\system32\DRIVERS\UMDF\UsbRnd_4.dll”.
#E360 An unsigned or incorrectly signed file “e:\testdrivers\usbrnd4\usbrnd_4.inf” for driver " R&D Test Driver" will be installed (Policy=Ignore). Error 0xe000022f: The third-party INF does not contain digital signature information.
#-336 Copying file “e:\testdrivers\usbrnd4\WudfUpdate_01009.dll” to “C:\WINDOWS\system32\WudfUpdate_01009.dll” via temporary file “C:\WINDOWS\system32\SET27.tmp”.
#E360 An unsigned or incorrectly signed file “e:\testdrivers\usbrnd4\usbrnd_4.inf” for driver " R&D Test Driver" will be installed (Policy=Ignore). Error 0xe000022f: The third-party INF does not contain digital signature information.
#-336 Copying file “e:\testdrivers\usbrnd4\WdfCoInstaller01009.dll” to “C:\WINDOWS\system32\WdfCoInstaller01009.dll” via temporary file “C:\WINDOWS\system32\SET2A.tmp”.
#E360 An unsigned or incorrectly signed file “e:\testdrivers\usbrnd4\usbrnd_4.inf” for driver " R&D Test Driver" will be installed (Policy=Ignore). Error 0xe000022f: The third-party INF does not contain digital signature information.
#-336 Copying file “e:\testdrivers\usbrnd4\WinUsbCoinstaller2.dll” to “C:\WINDOWS\system32\WinUsbCoinstaller2.dll” via temporary file “C:\WINDOWS\system32\SET2B.tmp”.
#E360 An unsigned or incorrectly signed file “e:\testdrivers\usbrnd4\usbrnd_4.inf” for driver " R&D Test Driver" will be installed (Policy=Ignore). Error 0xe000022f: The third-party INF does not contain digital signature information.
#-166 Device install function: DIF_REGISTER_COINSTALLERS.
#I056 Coinstallers registered.
#-166 Device install function: DIF_INSTALLINTERFACES.
#-011 Installing section [Usb_Install.NT.Interfaces] from “e:\testdrivers\usbrnd4\usbrnd_4.inf”.
#I054 Interfaces installed.
#-166 Device install function: DIF_INSTALLDEVICE.
#E151 Coinstaller 1 of 3 failed. Error 0xe0000102: The required line was not found in the INF.


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


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

FYI, The chkinf tool in the WDK is typically good at catching errors in inf files.

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Ilias Tsigkogiannis
Sent: Thursday, March 04, 2010 4:57 PM
To: Windows System Software Devs Interest List
Subject: RE: RE:[ntdev] Re: WUDFRd.sys is not present - win XP

I saw the inf that you posted in a previous email.

The line “UmdfService=UsbRnd, UsbRnd_Install” tells the UMDF coinstaller to look for a section named UsbRnd_Install. However, the corresponding section in your inf is named [WUDFOsrUsbFx2_Install]. You need to change that to be [UsbRnd_Install].

Ilias

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Ilias Tsigkogiannis
Sent: Thursday, March 04, 2010 4:48 PM
To: Windows System Software Devs Interest List
Subject: RE: RE:[ntdev] Re: WUDFRd.sys is not present - win XP

Would it be possible to share the contents of the file %windir%\setupact.log that correspond to the failed installation? Most probably, that log file will show the line that is missing.

Thanks,
Ilias

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@gmail.com
Sent: Thursday, March 04, 2010 10:27 AM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] Re: WUDFRd.sys is not present - win XP

Hi Doron,

Thank you very much for the quick reply. I appreciate for pointing out the mistake in inf file exactly.
I changed my inf file as per your suggestion and tried installing and got thru of the error ‘WUDFRd.sys is not present’. But, I’m getting another error message saying
#E151 Coinstaller 1 of 3 failed. Error 0xe0000102: The required line was not found in the INF.’

I have all the 3 coinstallers “WudfUpdate_01009.dll”, “WinUsbCoinstaller2.dll”, “WdfCoInstaller01009.dll” in my installation directory. and I wonder why I’m i getting this error message.

setupapi.log :
#I058 Selected best compatible driver.
#-124 Doing copy-only install of “USB\VID_1C06&PID_FFFE\000-0000”.
#E360 An unsigned or incorrectly signed file “e:\testdrivers\usbrnd4\usbrnd_4.inf” for driver " R&D Test Driver" will be installed (Policy=Ignore). Error 0xe000022f: The third-party INF does not contain digital signature information.
#W187 Install failed, attempting to restore original files.
#E360 An unsigned or incorrectly signed file “e:\testdrivers\usbrnd4\usbrnd_4.inf” for driver " R&D Test Driver" will be installed (Policy=Ignore). Error 0xe000022f: The third-party INF does not contain digital signature information.
#-024 Copying file “e:\testdrivers\usbrnd4\UsbRnd_4.dll” to “C:\WINDOWS\system32\DRIVERS\UMDF\UsbRnd_4.dll”.
#E360 An unsigned or incorrectly signed file “e:\testdrivers\usbrnd4\usbrnd_4.inf” for driver " R&D Test Driver" will be installed (Policy=Ignore). Error 0xe000022f: The third-party INF does not contain digital signature information.
#-336 Copying file “e:\testdrivers\usbrnd4\WudfUpdate_01009.dll” to “C:\WINDOWS\system32\WudfUpdate_01009.dll” via temporary file “C:\WINDOWS\system32\SET27.tmp”.
#E360 An unsigned or incorrectly signed file “e:\testdrivers\usbrnd4\usbrnd_4.inf” for driver " R&D Test Driver" will be installed (Policy=Ignore). Error 0xe000022f: The third-party INF does not contain digital signature information.
#-336 Copying file “e:\testdrivers\usbrnd4\WdfCoInstaller01009.dll” to “C:\WINDOWS\system32\WdfCoInstaller01009.dll” via temporary file “C:\WINDOWS\system32\SET2A.tmp”.
#E360 An unsigned or incorrectly signed file “e:\testdrivers\usbrnd4\usbrnd_4.inf” for driver " R&D Test Driver" will be installed (Policy=Ignore). Error 0xe000022f: The third-party INF does not contain digital signature information.
#-336 Copying file “e:\testdrivers\usbrnd4\WinUsbCoinstaller2.dll” to “C:\WINDOWS\system32\WinUsbCoinstaller2.dll” via temporary file “C:\WINDOWS\system32\SET2B.tmp”.
#E360 An unsigned or incorrectly signed file “e:\testdrivers\usbrnd4\usbrnd_4.inf” for driver " R&D Test Driver" will be installed (Policy=Ignore). Error 0xe000022f: The third-party INF does not contain digital signature information.
#-166 Device install function: DIF_REGISTER_COINSTALLERS.
#I056 Coinstallers registered.
#-166 Device install function: DIF_INSTALLINTERFACES.
#-011 Installing section [Usb_Install.NT.Interfaces] from “e:\testdrivers\usbrnd4\usbrnd_4.inf”.
#I054 Interfaces installed.
#-166 Device install function: DIF_INSTALLDEVICE.
#E151 Coinstaller 1 of 3 failed. Error 0xe0000102: The required line was not found in the INF.


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


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


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

Brandon Wilson wrote:

FYI, The chkinf tool in the WDK is typically good at catching errors in inf files.

Yes, but chkinf doesn’t understand the WDF extensions, unless that’s
been corrected in the most recent WDK. That’s where all of the OP’s
problems were.


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

While the OP’s problems manifested themselves as WDF failures, the root cause was unreferenced sections. I quickly ran his inf through the WDK 7600 version of the tool which produced a bunch of warnings/errors which would have been useful in diagnosing the issue.

I don’t use chkinf regularly so I don’t know all its capabilities off the top of my head, however it has been useful the few times I have needed it. If you have specific comments on how the tool can be improved to suit your needs, I can make sure that it gets to the right person.

Brandon

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Tim Roberts
Sent: Friday, March 05, 2010 10:52 AM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] Re: WUDFRd.sys is not present - win XP

Brandon Wilson wrote:

FYI, The chkinf tool in the WDK is typically good at catching errors in inf files.

Yes, but chkinf doesn’t understand the WDF extensions, unless that’s
been corrected in the most recent WDK. That’s where all of the OP’s
problems were.


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

Hi,

Thank you very much for the replies.
I corrected the inf file as per your advice. I customized the umdf fx2 final sample and tried. And this time, the installation fails with the error message saying :
Device not started: Device has problem: 0x0a: CM_PROB_FAILED_START.

I found the following error message in the setupact.log file and I dont know whether this is causing the problem.
GetControlKey: RegOpenKeyEx(HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Wdf\Kmdf\KmdfLibrary\Versions) failed: error(2) The system cannot find the file specified.

I searched the OSR ntdev list for this error before posting again. But, cudnt figure out what causes the error in my case. I’m sending the relevant statements from setupapi.log, setupact.log and inf files as attachment.

First of all, I request your advice in choosing the sample driver and mode. I want to develop a driver to support our company’s usb device which contains one interface and three endpoints (Interrupt IN, Bulk Out, and Bulk IN). I want to know which driver sample from wdk that I can take as a base code. Should I go for kmdf or umdf is enough. What other customizations I’ve to do in the code other than the steps given in the document Sample Drivers for the User-Mode Driver Framework(UMDF-samp.doc). Please advice.

Thanks for the help.
Lalitha.
****************************** Inf File ******************************
;
; UsbRnd.inf - Install the USB R&D Bulk user-mode driver
;

[Version]
Signature=“$Windows NT$”
Class=Sample
ClassGuid={78A1C341-4539-11d3-B88D-00C04FAD5171}
Provider=%My Company%
DriverVer=02/26/2010,6.1.7600.16385
CatalogFile=wudf.cat

[Manufacturer]
%My Company%=My Company,NTx86

[My Company.NTx86]
%UsbDeviceName%=Usb_Install, USB\Vid_045e&Pid_94aa&mi_00
%UsbDeviceName%=Usb_Install, USB\VID_1C06&PID_FFFE&rev_0100

[ClassInstall32]
AddReg=SampleClass_RegistryAdd

[SampleClass_RegistryAdd]
HKR,%ClassName%
HKR,Icon,“-10”

[SourceDisksFiles]
UsbRnd.dll=1
WudfUpdate_01009.dll=1
WdfCoInstaller01009.dll=1
WinUsbCoinstaller2.dll=1

[SourceDisksNames]
1 = %MediaDescription%

; =================== UMDF UsbRnd Device ==================================

[Usb_Install.NT]
CopyFiles=UMDriverCopy
Include=WINUSB.INF ; Import sections from WINUSB.INF
Needs=WINUSB.NT ; Run the CopyFiles & AddReg directives for WinUsb.INF

[Usb_Install.NT.hw]
AddReg=Usb_Device_AddReg

[Usb_Install.NT.Services]
AddService=WUDFRd,0x000001fa,WUDFRD_ServiceInstall ; flag 0x2 sets this as the service for the device
AddService=WinUsb,0x000001f8,WinUsb_ServiceInstall ; this service is installed because its a filter.

[Usb_Install.NT.Wdf]
KmdfService=WINUSB, WinUsb_Install
UmdfDispatcher=WinUsb
UmdfService=UsbRnd, UsbRnd_Install
UmdfServiceOrder=UsbRnd

[Usb_Install.NT.CoInstallers]
AddReg=CoInstallers_AddReg
CopyFiles=CoInstallers_CopyFiles

[WinUsb_Install]
KmdfLibraryVersion = 1.9

[UsbRnd_Install]
UmdfLibraryVersion=1.9.0
DriverCLSID = “{0865b2b0-6b73-428f-a3ea-2172832d6bfc}”
ServiceBinary = “%12%\UMDF\UsbRnd.dll”

[Usb_Device_AddReg]
HKR,“LowerFilters”,0x00010008,“WinUsb” ; FLG_ADDREG_TYPE_MULTI_SZ | FLG_ADDREG_APPEND

[WUDFRD_ServiceInstall]
DisplayName = %WudfRdDisplayName%
ServiceType = 1
StartType = 3
ErrorControl = 1
ServiceBinary = %12%\WUDFRd.sys
LoadOrderGroup = Base

[WinUsb_ServiceInstall]
DisplayName = %WinUsb_SvcDesc%
ServiceType = 1
StartType = 3
ErrorControl = 1
ServiceBinary = %12%\WinUSB.sys

[CoInstallers_AddReg]
HKR,CoInstallers32,0x00010000,“WudfUpdate_01009.dll”, “WinUsbCoinstaller2.dll”, “WdfCoInstaller01009.dll,WdfCoInstaller”

[CoInstallers_CopyFiles]
WudfUpdate_01009.dll
WdfCoInstaller01009.dll
WinUsbCoinstaller2.dll

[DestinationDirs]
UMDriverCopy=12,UMDF ; copy to driversMdf
CoInstallers_CopyFiles=11

[UMDriverCopy]
UsbRnd.dll

; =================== Generic ==================================

[Strings]
My Company=“My Company”
MediaDescription=" R&D Driver"
ClassName=“Sample Device”
WudfRdDisplayName=“Windows Driver Foundation - User-mode Driver Framework Reflector”
UsbDeviceName=“R&D Driver”
WinUsb_SvcDesc=“WinUSB Driver”

****************************** setupapi.log ******************************
[2010/03/05 10:56:34 1716.2923]
#-198 Command line processed: “C:\WINDOWS\system32\mmc.exe” C:\WINDOWS\system32\devmgmt.msc /s
#I060 Set selected driver.
#-019 Searching for hardware ID(s): usb\vid_1c06&pid_fffe&rev_0100,usb\vid_1c06&pid_fffe
#-018 Searching for compatible ID(s): usb\class_ff&subclass_00&prot_00,usb\class_ff&subclass_00,usb\class_ff
#-019 Searching for hardware ID(s): usb\vid_1c06&pid_fffe&rev_0100,usb\vid_1c06&pid_fffe
#-018 Searching for compatible ID(s): usb\class_ff&subclass_00&prot_00,usb\class_ff&subclass_00,usb\class_ff
#I022 Found “USB\VID_1C06&PID_FFFE&rev_0100” in e:\testdrivers\usbumdffinal\UsbRnd.inf; Device: “R&D Test Driver”; Driver: “R&D Test Driver”; Provider: “MyCompany”; Mfg: “MyCompany”; Section name: “Usb_Install”.
#I087 Driver node not trusted, rank changed from 0x00000000 to 0x00008000.
#I023 Actual install section: [Usb_Install.NT]. Rank: 0x00008000. Effective driver date: 03/05/2010.
#-166 Device install function: DIF_SELECTBESTCOMPATDRV.
#I063 Selected driver installs from section [Usb_Install] in “e:\testdrivers\usbumdffinal\usbrnd.inf”.
#I320 Class GUID of device remains: {78A1C341-4539-11D3-B88D-00C04FAD5171}.
#I060 Set selected driver.
#I058 Selected best compatible driver.
#-124 Doing copy-only install of “USB\VID_1C06&PID_FFFE\000-0000”.
#E360 An unsigned or incorrectly signed file “e:\testdrivers\usbumdffinal\wudf.cat” for driver “R&D Test Driver” will be installed (Policy=Ignore). Error 0x80092003: An error occurred while reading or writing to a file.
#W187 Install failed, attempting to restore original files.
#E360 An unsigned or incorrectly signed file “e:\testdrivers\usbumdffinal\wudf.cat” for driver “R&D Test Driver” will be installed (Policy=Ignore). Error 0x80092003: An error occurred while reading or writing to a file.
#-024 Copying file “e:\testdrivers\usbumdffinal\UsbRnd.dll” to “C:\WINDOWS\system32\DRIVERS\UMDF\UsbRnd.dll”.
#E360 An unsigned or incorrectly signed file “e:\testdrivers\usbumdffinal\UsbRnd.dll” for driver “R&D Test Driver” will be installed (Policy=Ignore). Error 0x80092003: An error occurred while reading or writing to a file.
#-336 Copying file “e:\testdrivers\usbumdffinal\WudfUpdate_01009.dll” to “C:\WINDOWS\system32\WudfUpdate_01009.dll” via temporary file “C:\WINDOWS\system32\SET9.tmp”.
#E360 An unsigned or incorrectly signed file “e:\testdrivers\usbumdffinal\WudfUpdate_01009.dll” for driver “R&D Test Driver” will be installed (Policy=Ignore). Error 0x80092003: An error occurred while reading or writing to a file.
#-336 Copying file “e:\testdrivers\usbumdffinal\WdfCoInstaller01009.dll” to “C:\WINDOWS\system32\WdfCoInstaller01009.dll” via temporary file “C:\WINDOWS\system32\SETA.tmp”.
#E360 An unsigned or incorrectly signed file “e:\testdrivers\usbumdffinal\WdfCoInstaller01009.dll” for driver “R&D Test Driver” will be installed (Policy=Ignore). Error 0x80092003: An error occurred while reading or writing to a file.
#-336 Copying file “e:\testdrivers\usbumdffinal\WinUsbCoinstaller2.dll” to “C:\WINDOWS\system32\WinUsbCoinstaller2.dll” via temporary file “C:\WINDOWS\system32\SETB.tmp”.
#E360 An unsigned or incorrectly signed file “e:\testdrivers\usbumdffinal\WinUsbCoinstaller2.dll” for driver “R&D Test Driver” will be installed (Policy=Ignore). Error 0x80092003: An error occurred while reading or writing to a file.
#-166 Device install function: DIF_REGISTER_COINSTALLERS.
#I056 Coinstallers registered.
#-166 Device install function: DIF_INSTALLINTERFACES.
#-011 Installing section [Usb_Install.NT.Interfaces] from “e:\testdrivers\usbumdffinal\usbrnd.inf”.
#I054 Interfaces installed.
#-166 Device install function: DIF_INSTALLDEVICE.
#I123 Doing full install of “USB\VID_1C06&PID_FFFE\000-0000”.
#E360 An unsigned or incorrectly signed file “e:\testdrivers\usbumdffinal\usbrnd.inf” for driver “R&D Test Driver” will be installed (Policy=Ignore). Error 0xe000022f: The third-party INF does not contain digital signature information.
#I163 Device not started: Device has problem: 0x0a: CM_PROB_FAILED_START.
#I121 Device install of “USB\VID_1C06&PID_FFFE\000-0000” finished successfully.

****************************** setupact.log ******************************

[03/05/2010 10:56.44.515] WudfUpdate: installing version (1,9,0,7600).
[03/05/2010 10:56.44.546] WudfUpdate: Checking for presence of previous UMDF installation.
[03/05/2010 10:56.44.546] WudfUpdate: File C:\WINDOWS\system32\drivers\wudfrd.sys not found.
[03/05/2010 10:56.44.562] WudfUpdate: UMDF file %WINDIR%\system32\drivers\wudfrd.sys not found.
[03/05/2010 10:56.44.578] WudfUpdate: File C:\WINDOWS\system32\drivers\wudfpf.sys not found.
[03/05/2010 10:56.44.578] WudfUpdate: UMDF file %WINDIR%\system32\drivers\wudfpf.sys not found.
[03/05/2010 10:56.44.578] WudfUpdate: File C:\WINDOWS\system32\wudfhost.exe not found.
[03/05/2010 10:56.44.578] WudfUpdate: UMDF file %WINDIR%\system32\wudfhost.exe not found.
[03/05/2010 10:56.44.578] WudfUpdate: File C:\WINDOWS\system32\wudfsvc.dll not found.
[03/05/2010 10:56.44.578] WudfUpdate: UMDF file %WINDIR%\system32\wudfsvc.dll not found.
[03/05/2010 10:56.44.593] WudfUpdate: File C:\WINDOWS\system32\wudfx.dll not found.
[03/05/2010 10:56.44.593] WudfUpdate: UMDF file %WINDIR%\system32\wudfx.dll not found.
[03/05/2010 10:56.44.593] WudfUpdate: File C:\WINDOWS\system32\wudfplatform.dll not found.
[03/05/2010 10:56.44.593] WudfUpdate: UMDF file %WINDIR%\system32\wudfplatform.dll not found.
[03/05/2010 10:56.44.593] WudfUpdate: File C:\WINDOWS\system32\wudfcoinstaller.dll not found.
[03/05/2010 10:56.44.593] WudfUpdate: UMDF file %WINDIR%\system32\wudfcoinstaller.dll not found.
[03/05/2010 10:56.44.593] WudfUpdate: UMDF installation not found.
[03/05/2010 10:56.44.593] WudfUpdate: Locating resource stream WUDF_UPDATE_XP-SRV03.
[03/05/2010 10:56.44.593] WudfUpdate: unpacking update from resource to Microsoft User-Mode Driver Framework Install-v1.9-WinXP-Srv03.exe.
[03/05/2010 10:56.44.593] WudfUpdate: Temporary path is C:\WINDOWS\Temp\WDFC.tmp.
[03/05/2010 10:56.44.750] WudfUpdate: Invoking update “C:\WINDOWS\Temp\WDFC.tmp\Microsoft User-Mode Driver Framework Install-v1.9-WinXP-Srv03.exe” with command line “/quiet /o /ER /norestart /log:”%WINDIR%\temp\wudf_update.log"".
[03/05/2010 10:56.44.781] WudfUpdate: Waiting for update to terminate.
[03/05/2010 10:56.56.921] WudfUpdate: Update process returned 0.
[03/05/2010 10:56.56.921] WudfUpdate: WUDF version 1.9.0 () was installed successfully.
[03/05/2010 10:56.56.921] WudfUpdate: Cleaning up update.
[03/05/2010 10:56.56.921] WudfUpdate: Loading configuration coinstaller from C:\WINDOWS\system32\wudfcoinstaller.dll.
[03/05/2010 10:56.56.953] WudfCoInstaller: ReadWdfSection: Checking WdfSection [Usb_Install.NT.Wdf]
[03/05/2010 10:56.56.953] WudfCoInstaller: Using I/O dispatcher WinUSB.
[03/05/2010 10:56.56.968] WudfCoInstaller: Configuring UMDF Service UsbRnd.
[03/05/2010 10:56.56.968] WudfCoInstaller: UmdfDispatcher set to WinUSB
[03/05/2010 10:56.56.968] WudfCoInstaller: Using “Pre-Vista” service configuration
[03/05/2010 10:56.57.406] WudfCoInstaller: Service WudfSvc started successfully.
[03/05/2010 10:56.57.406] WudfCoInstaller: Final status: error(0) The operation completed successfully.

[03/05/2010 10:56.57.437] WinUSBUpdate: installing version (6,1,7600,16385).
[03/05/2010 10:56.57.437] WinUSBUpdate: Checking for presence of previous WinUSB installation.
[03/05/2010 10:56.57.437] WinUSBUpdate: File C:\WINDOWS\system32\drivers\winusb.sys not found.
[03/05/2010 10:56.57.437] WinUSBUpdate: WinUSB file %WINDIR%\system32\drivers\winusb.sys not found.
[03/05/2010 10:56.57.437] WinUSBUpdate: File C:\WINDOWS\system32\winusb.dll not found.
[03/05/2010 10:56.57.437] WinUSBUpdate: WinUSB file %WINDIR%\system32\winusb.dll not found.
[03/05/2010 10:56.57.468] WinUSBUpdate: WinUSB installation not found.
[03/05/2010 10:56.57.468] WinUSBUpdate: Locating resource stream WINUSB_UPDATE_XP-SRV03.
[03/05/2010 10:56.57.468] WinUSBUpdate: unpacking update from resource to WinUSB.exe.
[03/05/2010 10:56.57.468] WinUSBUpdate: Temporary path is C:\WINDOWS\Temp\WDF16.tmp.
[03/05/2010 10:56.57.515] WinUSBUpdate: Invoking update “C:\WINDOWS\Temp\WDF16.tmp\WinUSB.exe” with command line “/quiet /o /ER /norestart /log:”%WINDIR%\temp\winusb_update.log"".
[03/05/2010 10:56.57.593] WinUSBUpdate: Waiting for update to terminate.
[03/05/2010 10:57.01.484] WinUSBUpdate: Update process returned 0.
[03/05/2010 10:57.01.484] WinUSBUpdate: WinUSB version 6.1.7600 (Release) was installed successfully.
[03/05/2010 10:57.01.484] WinUSBUpdate: Cleaning up update.
WdfCoInstaller: [03/05/2010 10:57.01.500] DIF_INSTALLDEVICE: Pre-Processing
WdfCoInstaller: [03/05/2010 10:57.01.515] ReadComponents: WdfSection for Driver Service WINUSB using KMDF lib version Major 0x1, minor 0x9
WdfCoInstaller: [03/05/2010 10:57.01.515] DIF_INSTALLDEVICE: Coinstaller version: 1.9.7600
WdfCoInstaller: [03/05/2010 10:57.01.515] GetControlKey: RegOpenKeyEx(HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Wdf\Kmdf\KmdfLibrary\Versions) failed: error(2) The system cannot find the file specified.

WdfCoInstaller: [03/05/2010 10:57.01.515] KMDF control key was not found
WdfCoInstaller: [03/05/2010 10:57.01.515] Using default name for KMDF service: Wdf01000
WdfCoInstaller: [03/05/2010 10:57.01.515] GetInMemoryVersionUlong: No information about in-memory KMDF version
WdfCoInstaller: [03/05/2010 10:57.01.515] DIF_INSTALLDEVICE: KMDF in-memory version: 0.0.0
WdfCoInstaller: [03/05/2010 10:57.01.515] GetLatestInstalledVersion: KMDF was not previously installed in the system
WdfCoInstaller: [03/05/2010 10:57.01.515] DIF_INSTALLDEVICE: No need for reboot, because KMDF was not found in the system
WdfCoInstaller: [03/05/2010 10:57.01.765] VerifyMSRoot: exit: error(0) The operation completed successfully.

WdfCoInstaller: [03/05/2010 10:57.01.812] Invoking “C:\WINDOWS\Temp\WdfTemp\Microsoft Kernel-Mode Driver Framework Install-v1.9-Win2k-WinXP-Win2k3.exe /quiet /norestart /o /ER”.
WdfCoInstaller: [03/05/2010 10:57.06.203] The package was installed successfully: error(0) The operation completed successfully.
.
WdfCoInstaller: [03/05/2010 10:57.06.203] InstallComponents: KMDF installed successfully
WdfCoInstaller: [03/05/2010 10:57.07.546] DIF_INSTALLDEVICE: Post-Processing
[03/05/2010 10:57.07.578] WudfCoInstaller: Created marker file C:\WINDOWS\system32\drivers\Msft_User_UsbRnd_01_09_00.Wdf.

The installation of KMDF+UMDF+WinUSB finished successfully according to the logs.
Can you try debugging your driver and see for example, if CMyDriver::CreateInstance() gets hit (or the corresponding function in your driver, if you’ve changed the function names in the OSR fx2 sample)? If it does, then you can debug the rest of the code in your driver and see what is failing. If it does not, then we’ll have to dig deeper in UMDF logging.

Ilias

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@gmail.com
Sent: Friday, March 05, 2010 1:45 PM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] Re: WUDFRd.sys is not present - win XP

Hi,

Thank you very much for the replies.
I corrected the inf file as per your advice. I customized the umdf fx2 final sample and tried. And this time, the installation fails with the error message saying :
Device not started: Device has problem: 0x0a: CM_PROB_FAILED_START.

I found the following error message in the setupact.log file and I dont know whether this is causing the problem.
GetControlKey: RegOpenKeyEx(HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Wdf\Kmdf\KmdfLibrary\Versions) failed: error(2) The system cannot find the file specified.

I searched the OSR ntdev list for this error before posting again. But, cudnt figure out what causes the error in my case. I’m sending the relevant statements from setupapi.log, setupact.log and inf files as attachment.

First of all, I request your advice in choosing the sample driver and mode. I want to develop a driver to support our company’s usb device which contains one interface and three endpoints (Interrupt IN, Bulk Out, and Bulk IN). I want to know which driver sample from wdk that I can take as a base code. Should I go for kmdf or umdf is enough. What other customizations I’ve to do in the code other than the steps given in the document Sample Drivers for the User-Mode Driver Framework(UMDF-samp.doc). Please advice.

Thanks for the help.
Lalitha.
****************************** Inf File ******************************
;
; UsbRnd.inf - Install the USB R&D Bulk user-mode driver
;

[Version]
Signature=“$Windows NT$”
Class=Sample
ClassGuid={78A1C341-4539-11d3-B88D-00C04FAD5171}
Provider=%My Company%
DriverVer=02/26/2010,6.1.7600.16385
CatalogFile=wudf.cat

[Manufacturer]
%My Company%=My Company,NTx86

[My Company.NTx86]
%UsbDeviceName%=Usb_Install, USB\Vid_045e&Pid_94aa&mi_00
%UsbDeviceName%=Usb_Install, USB\VID_1C06&PID_FFFE&rev_0100

[ClassInstall32]
AddReg=SampleClass_RegistryAdd

[SampleClass_RegistryAdd]
HKR,%ClassName%
HKR,Icon,“-10”

[SourceDisksFiles]
UsbRnd.dll=1
WudfUpdate_01009.dll=1
WdfCoInstaller01009.dll=1
WinUsbCoinstaller2.dll=1

[SourceDisksNames]
1 = %MediaDescription%

; =================== UMDF UsbRnd Device ==================================

[Usb_Install.NT]
CopyFiles=UMDriverCopy
Include=WINUSB.INF ; Import sections from WINUSB.INF
Needs=WINUSB.NT ; Run the CopyFiles & AddReg directives for WinUsb.INF

[Usb_Install.NT.hw]
AddReg=Usb_Device_AddReg

[Usb_Install.NT.Services]
AddService=WUDFRd,0x000001fa,WUDFRD_ServiceInstall ; flag 0x2 sets this as the service for the device
AddService=WinUsb,0x000001f8,WinUsb_ServiceInstall ; this service is installed because its a filter.

[Usb_Install.NT.Wdf]
KmdfService=WINUSB, WinUsb_Install
UmdfDispatcher=WinUsb
UmdfService=UsbRnd, UsbRnd_Install
UmdfServiceOrder=UsbRnd

[Usb_Install.NT.CoInstallers]
AddReg=CoInstallers_AddReg
CopyFiles=CoInstallers_CopyFiles

[WinUsb_Install]
KmdfLibraryVersion = 1.9

[UsbRnd_Install]
UmdfLibraryVersion=1.9.0
DriverCLSID = “{0865b2b0-6b73-428f-a3ea-2172832d6bfc}”
ServiceBinary = “%12%\UMDF\UsbRnd.dll”

[Usb_Device_AddReg]
HKR,“LowerFilters”,0x00010008,“WinUsb” ; FLG_ADDREG_TYPE_MULTI_SZ | FLG_ADDREG_APPEND

[WUDFRD_ServiceInstall]
DisplayName = %WudfRdDisplayName%
ServiceType = 1
StartType = 3
ErrorControl = 1
ServiceBinary = %12%\WUDFRd.sys
LoadOrderGroup = Base

[WinUsb_ServiceInstall]
DisplayName = %WinUsb_SvcDesc%
ServiceType = 1
StartType = 3
ErrorControl = 1
ServiceBinary = %12%\WinUSB.sys

[CoInstallers_AddReg]
HKR,CoInstallers32,0x00010000,“WudfUpdate_01009.dll”, “WinUsbCoinstaller2.dll”, “WdfCoInstaller01009.dll,WdfCoInstaller”

[CoInstallers_CopyFiles]
WudfUpdate_01009.dll
WdfCoInstaller01009.dll
WinUsbCoinstaller2.dll

[DestinationDirs]
UMDriverCopy=12,UMDF ; copy to driversMdf
CoInstallers_CopyFiles=11

[UMDriverCopy]
UsbRnd.dll

; =================== Generic ==================================

[Strings]
My Company=“My Company”
MediaDescription=" R&D Driver"
ClassName=“Sample Device”
WudfRdDisplayName=“Windows Driver Foundation - User-mode Driver Framework Reflector”
UsbDeviceName=“R&D Driver”
WinUsb_SvcDesc=“WinUSB Driver”

****************************** setupapi.log ******************************
[2010/03/05 10:56:34 1716.2923]
#-198 Command line processed: “C:\WINDOWS\system32\mmc.exe” C:\WINDOWS\system32\devmgmt.msc /s
#I060 Set selected driver.
#-019 Searching for hardware ID(s): usb\vid_1c06&pid_fffe&rev_0100,usb\vid_1c06&pid_fffe
#-018 Searching for compatible ID(s): usb\class_ff&subclass_00&prot_00,usb\class_ff&subclass_00,usb\class_ff
#-019 Searching for hardware ID(s): usb\vid_1c06&pid_fffe&rev_0100,usb\vid_1c06&pid_fffe
#-018 Searching for compatible ID(s): usb\class_ff&subclass_00&prot_00,usb\class_ff&subclass_00,usb\class_ff
#I022 Found “USB\VID_1C06&PID_FFFE&rev_0100” in e:\testdrivers\usbumdffinal\UsbRnd.inf; Device: “R&D Test Driver”; Driver: “R&D Test Driver”; Provider: “MyCompany”; Mfg: “MyCompany”; Section name: “Usb_Install”.
#I087 Driver node not trusted, rank changed from 0x00000000 to 0x00008000.
#I023 Actual install section: [Usb_Install.NT]. Rank: 0x00008000. Effective driver date: 03/05/2010.
#-166 Device install function: DIF_SELECTBESTCOMPATDRV.
#I063 Selected driver installs from section [Usb_Install] in “e:\testdrivers\usbumdffinal\usbrnd.inf”.
#I320 Class GUID of device remains: {78A1C341-4539-11D3-B88D-00C04FAD5171}.
#I060 Set selected driver.
#I058 Selected best compatible driver.
#-124 Doing copy-only install of “USB\VID_1C06&PID_FFFE\000-0000”.
#E360 An unsigned or incorrectly signed file “e:\testdrivers\usbumdffinal\wudf.cat” for driver “R&D Test Driver” will be installed (Policy=Ignore). Error 0x80092003: An error occurred while reading or writing to a file.
#W187 Install failed, attempting to restore original files.
#E360 An unsigned or incorrectly signed file “e:\testdrivers\usbumdffinal\wudf.cat” for driver “R&D Test Driver” will be installed (Policy=Ignore). Error 0x80092003: An error occurred while reading or writing to a file.
#-024 Copying file “e:\testdrivers\usbumdffinal\UsbRnd.dll” to “C:\WINDOWS\system32\DRIVERS\UMDF\UsbRnd.dll”.
#E360 An unsigned or incorrectly signed file “e:\testdrivers\usbumdffinal\UsbRnd.dll” for driver “R&D Test Driver” will be installed (Policy=Ignore). Error 0x80092003: An error occurred while reading or writing to a file.
#-336 Copying file “e:\testdrivers\usbumdffinal\WudfUpdate_01009.dll” to “C:\WINDOWS\system32\WudfUpdate_01009.dll” via temporary file “C:\WINDOWS\system32\SET9.tmp”.
#E360 An unsigned or incorrectly signed file “e:\testdrivers\usbumdffinal\WudfUpdate_01009.dll” for driver “R&D Test Driver” will be installed (Policy=Ignore). Error 0x80092003: An error occurred while reading or writing to a file.
#-336 Copying file “e:\testdrivers\usbumdffinal\WdfCoInstaller01009.dll” to “C:\WINDOWS\system32\WdfCoInstaller01009.dll” via temporary file “C:\WINDOWS\system32\SETA.tmp”.
#E360 An unsigned or incorrectly signed file “e:\testdrivers\usbumdffinal\WdfCoInstaller01009.dll” for driver “R&D Test Driver” will be installed (Policy=Ignore). Error 0x80092003: An error occurred while reading or writing to a file.
#-336 Copying file “e:\testdrivers\usbumdffinal\WinUsbCoinstaller2.dll” to “C:\WINDOWS\system32\WinUsbCoinstaller2.dll” via temporary file “C:\WINDOWS\system32\SETB.tmp”.
#E360 An unsigned or incorrectly signed file “e:\testdrivers\usbumdffinal\WinUsbCoinstaller2.dll” for driver “R&D Test Driver” will be installed (Policy=Ignore). Error 0x80092003: An error occurred while reading or writing to a file.
#-166 Device install function: DIF_REGISTER_COINSTALLERS.
#I056 Coinstallers registered.
#-166 Device install function: DIF_INSTALLINTERFACES.
#-011 Installing section [Usb_Install.NT.Interfaces] from “e:\testdrivers\usbumdffinal\usbrnd.inf”.
#I054 Interfaces installed.
#-166 Device install function: DIF_INSTALLDEVICE.
#I123 Doing full install of “USB\VID_1C06&PID_FFFE\000-0000”.
#E360 An unsigned or incorrectly signed file “e:\testdrivers\usbumdffinal\usbrnd.inf” for driver “R&D Test Driver” will be installed (Policy=Ignore). Error 0xe000022f: The third-party INF does not contain digital signature information.
#I163 Device not started: Device has problem: 0x0a: CM_PROB_FAILED_START.
#I121 Device install of “USB\VID_1C06&PID_FFFE\000-0000” finished successfully.

****************************** setupact.log ******************************

[03/05/2010 10:56.44.515] WudfUpdate: installing version (1,9,0,7600).
[03/05/2010 10:56.44.546] WudfUpdate: Checking for presence of previous UMDF installation.
[03/05/2010 10:56.44.546] WudfUpdate: File C:\WINDOWS\system32\drivers\wudfrd.sys not found.
[03/05/2010 10:56.44.562] WudfUpdate: UMDF file %WINDIR%\system32\drivers\wudfrd.sys not found.
[03/05/2010 10:56.44.578] WudfUpdate: File C:\WINDOWS\system32\drivers\wudfpf.sys not found.
[03/05/2010 10:56.44.578] WudfUpdate: UMDF file %WINDIR%\system32\drivers\wudfpf.sys not found.
[03/05/2010 10:56.44.578] WudfUpdate: File C:\WINDOWS\system32\wudfhost.exe not found.
[03/05/2010 10:56.44.578] WudfUpdate: UMDF file %WINDIR%\system32\wudfhost.exe not found.
[03/05/2010 10:56.44.578] WudfUpdate: File C:\WINDOWS\system32\wudfsvc.dll not found.
[03/05/2010 10:56.44.578] WudfUpdate: UMDF file %WINDIR%\system32\wudfsvc.dll not found.
[03/05/2010 10:56.44.593] WudfUpdate: File C:\WINDOWS\system32\wudfx.dll not found.
[03/05/2010 10:56.44.593] WudfUpdate: UMDF file %WINDIR%\system32\wudfx.dll not found.
[03/05/2010 10:56.44.593] WudfUpdate: File C:\WINDOWS\system32\wudfplatform.dll not found.
[03/05/2010 10:56.44.593] WudfUpdate: UMDF file %WINDIR%\system32\wudfplatform.dll not found.
[03/05/2010 10:56.44.593] WudfUpdate: File C:\WINDOWS\system32\wudfcoinstaller.dll not found.
[03/05/2010 10:56.44.593] WudfUpdate: UMDF file %WINDIR%\system32\wudfcoinstaller.dll not found.
[03/05/2010 10:56.44.593] WudfUpdate: UMDF installation not found.
[03/05/2010 10:56.44.593] WudfUpdate: Locating resource stream WUDF_UPDATE_XP-SRV03.
[03/05/2010 10:56.44.593] WudfUpdate: unpacking update from resource to Microsoft User-Mode Driver Framework Install-v1.9-WinXP-Srv03.exe.
[03/05/2010 10:56.44.593] WudfUpdate: Temporary path is C:\WINDOWS\Temp\WDFC.tmp.
[03/05/2010 10:56.44.750] WudfUpdate: Invoking update “C:\WINDOWS\Temp\WDFC.tmp\Microsoft User-Mode Driver Framework Install-v1.9-WinXP-Srv03.exe” with command line “/quiet /o /ER /norestart /log:”%WINDIR%\temp\wudf_update.log"".
[03/05/2010 10:56.44.781] WudfUpdate: Waiting for update to terminate.
[03/05/2010 10:56.56.921] WudfUpdate: Update process returned 0.
[03/05/2010 10:56.56.921] WudfUpdate: WUDF version 1.9.0 () was installed successfully.
[03/05/2010 10:56.56.921] WudfUpdate: Cleaning up update.
[03/05/2010 10:56.56.921] WudfUpdate: Loading configuration coinstaller from C:\WINDOWS\system32\wudfcoinstaller.dll.
[03/05/2010 10:56.56.953] WudfCoInstaller: ReadWdfSection: Checking WdfSection [Usb_Install.NT.Wdf]
[03/05/2010 10:56.56.953] WudfCoInstaller: Using I/O dispatcher WinUSB.
[03/05/2010 10:56.56.968] WudfCoInstaller: Configuring UMDF Service UsbRnd.
[03/05/2010 10:56.56.968] WudfCoInstaller: UmdfDispatcher set to WinUSB
[03/05/2010 10:56.56.968] WudfCoInstaller: Using “Pre-Vista” service configuration
[03/05/2010 10:56.57.406] WudfCoInstaller: Service WudfSvc started successfully.
[03/05/2010 10:56.57.406] WudfCoInstaller: Final status: error(0) The operation completed successfully.

[03/05/2010 10:56.57.437] WinUSBUpdate: installing version (6,1,7600,16385).
[03/05/2010 10:56.57.437] WinUSBUpdate: Checking for presence of previous WinUSB installation.
[03/05/2010 10:56.57.437] WinUSBUpdate: File C:\WINDOWS\system32\drivers\winusb.sys not found.
[03/05/2010 10:56.57.437] WinUSBUpdate: WinUSB file %WINDIR%\system32\drivers\winusb.sys not found.
[03/05/2010 10:56.57.437] WinUSBUpdate: File C:\WINDOWS\system32\winusb.dll not found.
[03/05/2010 10:56.57.437] WinUSBUpdate: WinUSB file %WINDIR%\system32\winusb.dll not found.
[03/05/2010 10:56.57.468] WinUSBUpdate: WinUSB installation not found.
[03/05/2010 10:56.57.468] WinUSBUpdate: Locating resource stream WINUSB_UPDATE_XP-SRV03.
[03/05/2010 10:56.57.468] WinUSBUpdate: unpacking update from resource to WinUSB.exe.
[03/05/2010 10:56.57.468] WinUSBUpdate: Temporary path is C:\WINDOWS\Temp\WDF16.tmp.
[03/05/2010 10:56.57.515] WinUSBUpdate: Invoking update “C:\WINDOWS\Temp\WDF16.tmp\WinUSB.exe” with command line “/quiet /o /ER /norestart /log:”%WINDIR%\temp\winusb_update.log"".
[03/05/2010 10:56.57.593] WinUSBUpdate: Waiting for update to terminate.
[03/05/2010 10:57.01.484] WinUSBUpdate: Update process returned 0.
[03/05/2010 10:57.01.484] WinUSBUpdate: WinUSB version 6.1.7600 (Release) was installed successfully.
[03/05/2010 10:57.01.484] WinUSBUpdate: Cleaning up update.
WdfCoInstaller: [03/05/2010 10:57.01.500] DIF_INSTALLDEVICE: Pre-Processing
WdfCoInstaller: [03/05/2010 10:57.01.515] ReadComponents: WdfSection for Driver Service WINUSB using KMDF lib version Major 0x1, minor 0x9
WdfCoInstaller: [03/05/2010 10:57.01.515] DIF_INSTALLDEVICE: Coinstaller version: 1.9.7600
WdfCoInstaller: [03/05/2010 10:57.01.515] GetControlKey: RegOpenKeyEx(HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Wdf\Kmdf\KmdfLibrary\Versions) failed: error(2) The system cannot find the file specified.

WdfCoInstaller: [03/05/2010 10:57.01.515] KMDF control key was not found
WdfCoInstaller: [03/05/2010 10:57.01.515] Using default name for KMDF service: Wdf01000
WdfCoInstaller: [03/05/2010 10:57.01.515] GetInMemoryVersionUlong: No information about in-memory KMDF version
WdfCoInstaller: [03/05/2010 10:57.01.515] DIF_INSTALLDEVICE: KMDF in-memory version: 0.0.0
WdfCoInstaller: [03/05/2010 10:57.01.515] GetLatestInstalledVersion: KMDF was not previously installed in the system
WdfCoInstaller: [03/05/2010 10:57.01.515] DIF_INSTALLDEVICE: No need for reboot, because KMDF was not found in the system
WdfCoInstaller: [03/05/2010 10:57.01.765] VerifyMSRoot: exit: error(0) The operation completed successfully.

WdfCoInstaller: [03/05/2010 10:57.01.812] Invoking “C:\WINDOWS\Temp\WdfTemp\Microsoft Kernel-Mode Driver Framework Install-v1.9-Win2k-WinXP-Win2k3.exe /quiet /norestart /o /ER”.
WdfCoInstaller: [03/05/2010 10:57.06.203] The package was installed successfully: error(0) The operation completed successfully.
.
WdfCoInstaller: [03/05/2010 10:57.06.203] InstallComponents: KMDF installed successfully
WdfCoInstaller: [03/05/2010 10:57.07.546] DIF_INSTALLDEVICE: Post-Processing
[03/05/2010 10:57.07.578] WudfCoInstaller: Created marker file C:\WINDOWS\system32\drivers\Msft_User_UsbRnd_01_09_00.Wdf.


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

Hi Illias,

I tried to debug UMDF driver based on the steps given in the wdk docs. I’m
trying the installation in a xp installed vm ware station. I installed the
wdk debuggers and tools in the vm station also for debugging.

I Enabled the debugger by changing the registry settings for *
HostProcessDbgBreakOnStart* to 4.
And then tried invoking from wdk xp environment,
windbg ?pn WUDFHost.exe
I’m getting the error message *“Unable to find process ‘WUDFHost.exe’,
HRESULT 0x80004002”.* WUDFHost.exe is not getting listed in the Tasklist.
When will the WUDFHost.exe will get start? Which debugging tool can be used
to debug umdf drivers and understand the code flow?

I also purchased the OSR Fx2 USB board for understanding the driver code.
But, i’m getting the same device start error with the learning device too! I
dont know where am i doing wrong. Pl help! I just want to write a simple
basic driver for a USB device to read data in bulk mode.

thanks,
Lalitha.

On Fri, Mar 5, 2010 at 5:38 PM, Ilias Tsigkogiannis wrote:

> The installation of KMDF+UMDF+WinUSB finished successfully according to the
> logs.
> Can you try debugging your driver and see for example, if
> CMyDriver::CreateInstance() gets hit (or the corresponding function in your
> driver, if you’ve changed the function names in the OSR fx2 sample)? If it
> does, then you can debug the rest of the code in your driver and see what is
> failing. If it does not, then we’ll have to dig deeper in UMDF logging.
>
> Ilias
>
> -----Original Message-----
> From: xxxxx@lists.osr.com [mailto:
> xxxxx@lists.osr.com] On Behalf Of xxxxx@gmail.com
> Sent: Friday, March 05, 2010 1:45 PM
> To: Windows System Software Devs Interest List
> Subject: RE:[ntdev] Re: WUDFRd.sys is not present - win XP
>
> Hi,
>
> Thank you very much for the replies.
> I corrected the inf file as per your advice. I customized the umdf fx2
> final sample and tried. And this time, the installation fails with the error
> message saying :
> Device not started: Device has problem: 0x0a: CM_PROB_FAILED_START.
>
> I found the following error message in the setupact.log file and I dont
> know whether this is causing the problem.
> GetControlKey:
> RegOpenKeyEx(HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Wdf\Kmdf\KmdfLibrary\Versions)
> failed: error(2) The system cannot find the file specified.
>
> I searched the OSR ntdev list for this error before posting again. But,
> cudnt figure out what causes the error in my case. I’m sending the relevant
> statements from setupapi.log, setupact.log and inf files as attachment.
>
> First of all, I request your advice in choosing the sample driver and mode.
> I want to develop a driver to support our company’s usb device which
> contains one interface and three endpoints (Interrupt IN, Bulk Out, and Bulk
> IN). I want to know which driver sample from wdk that I can take as a base
> code. Should I go for kmdf or umdf is enough. What other customizations I’ve
> to do in the code other than the steps given in the document Sample Drivers
> for the User-Mode Driver Framework(UMDF-samp.doc). Please advice.
>
> Thanks for the help.
> Lalitha.
> Inf File
> ;
> ; UsbRnd.inf - Install the USB R&D Bulk user-mode driver
> ;
>
> [Version]
> Signature=“$Windows NT$”
> Class=Sample
> ClassGuid={78A1C341-4539-11d3-B88D-00C04FAD5171}
> Provider=%My Company%
> DriverVer=02/26/2010,6.1.7600.16385
> CatalogFile=wudf.cat
>
> [Manufacturer]
> %My Company%=My Company,NTx86
>
> [My Company.NTx86]
> %UsbDeviceName%=Usb_Install, USB\Vid_045e&Pid_94aa&mi_00
> %UsbDeviceName%=Usb_Install, USB\VID_1C06&PID_FFFE&rev_0100
>
> [ClassInstall32]
> AddReg=SampleClass_RegistryAdd
>
> [SampleClass_RegistryAdd]
> HKR,%ClassName%
> HKR,Icon,“-10”
>
> [SourceDisksFiles]
> UsbRnd.dll=1
> WudfUpdate_01009.dll=1
> WdfCoInstaller01009.dll=1
> WinUsbCoinstaller2.dll=1
>
> [SourceDisksNames]
> 1 = %MediaDescription%
>
> ; =================== UMDF UsbRnd Device ==================================
>
> [Usb_Install.NT]
> CopyFiles=UMDriverCopy
> Include=WINUSB.INF ; Import sections from WINUSB.INF
> Needs=WINUSB.NT ; Run the CopyFiles & AddReg
> directives for WinUsb.INF
>
> [Usb_Install.NT.hw]
> AddReg=Usb_Device_AddReg
>
> [Usb_Install.NT.Services]
> AddService=WUDFRd,0x000001fa,WUDFRD_ServiceInstall ; flag 0x2 sets this as
> the service for the device
> AddService=WinUsb,0x000001f8,WinUsb_ServiceInstall ; this service is
> installed because its a filter.
>
> [Usb_Install.NT.Wdf]
> KmdfService=WINUSB, WinUsb_Install
> UmdfDispatcher=WinUsb
> UmdfService=UsbRnd, UsbRnd_Install
> UmdfServiceOrder=UsbRnd
>
> [Usb_Install.NT.CoInstallers]
> AddReg=CoInstallers_AddReg
> CopyFiles=CoInstallers_CopyFiles
>
> [WinUsb_Install]
> KmdfLibraryVersion = 1.9
>
> [UsbRnd_Install]
> UmdfLibraryVersion=1.9.0
> DriverCLSID = “{0865b2b0-6b73-428f-a3ea-2172832d6bfc}”
> ServiceBinary = “%12%\UMDF\UsbRnd.dll”
>
> [Usb_Device_AddReg]
> HKR,“LowerFilters”,0x00010008,“WinUsb” ; FLG_ADDREG_TYPE_MULTI_SZ |
> FLG_ADDREG_APPEND
>
> [WUDFRD_ServiceInstall]
> DisplayName = %WudfRdDisplayName%
> ServiceType = 1
> StartType = 3
> ErrorControl = 1
> ServiceBinary = %12%\WUDFRd.sys
> LoadOrderGroup = Base
>
> [WinUsb_ServiceInstall]
> DisplayName = %WinUsb_SvcDesc%
> ServiceType = 1
> StartType = 3
> ErrorControl = 1
> ServiceBinary = %12%\WinUSB.sys
>
> [CoInstallers_AddReg]
> HKR,CoInstallers32,0x00010000,“WudfUpdate_01009.dll”,
> “WinUsbCoinstaller2.dll”, “WdfCoInstaller01009.dll,WdfCoInstaller”
>
> [CoInstallers_CopyFiles]
> WudfUpdate_01009.dll
> WdfCoInstaller01009.dll
> WinUsbCoinstaller2.dll
>
> [DestinationDirs]
> UMDriverCopy=12,UMDF ; copy to driversMdf
> CoInstallers_CopyFiles=11
>
> [UMDriverCopy]
> UsbRnd.dll
>
> ; =================== Generic ==================================
>
> [Strings]
> My Company=“My Company”
> MediaDescription=" R&D Driver"
> ClassName=“Sample Device”
> WudfRdDisplayName=“Windows Driver Foundation - User-mode Driver Framework
> Reflector”
> UsbDeviceName=“R&D Driver”
> WinUsb_SvcDesc=“WinUSB Driver”
>
> setupapi.log
> [2010/03/05 10:56:34 1716.2923]
> #-198 Command line processed: “C:\WINDOWS\system32\mmc.exe”
> C:\WINDOWS\system32\devmgmt.msc /s
> #I060 Set selected driver.
> #-019 Searching for hardware ID(s):
> usb\vid_1c06&pid_fffe&rev_0100,usb\vid_1c06&pid_fffe
> #-018 Searching for compatible ID(s):
> usb\class_ff&subclass_00&prot_00,usb\class_ff&subclass_00,usb\class_ff
> #-019 Searching for hardware ID(s):
> usb\vid_1c06&pid_fffe&rev_0100,usb\vid_1c06&pid_fffe
> #-018 Searching for compatible ID(s):
> usb\class_ff&subclass_00&prot_00,usb\class_ff&subclass_00,usb\class_ff
> #I022 Found “USB\VID_1C06&PID_FFFE&rev_0100” in
> e:\testdrivers\usbumdffinal\UsbRnd.inf; Device: “R&D Test Driver”; Driver:
> “R&D Test Driver”; Provider: “MyCompany”; Mfg: “MyCompany”; Section name:
> “Usb_Install”.
> #I087 Driver node not trusted, rank changed from 0x00000000 to 0x00008000.
> #I023 Actual install section: [Usb_Install.NT]. Rank: 0x00008000. Effective
> driver date: 03/05/2010.
> #-166 Device install function: DIF_SELECTBESTCOMPATDRV.
> #I063 Selected driver installs from section [Usb_Install] in
> “e:\testdrivers\usbumdffinal\usbrnd.inf”.
> #I320 Class GUID of device remains: {78A1C341-4539-11D3-B88D-00C04FAD5171}.
> #I060 Set selected driver.
> #I058 Selected best compatible driver.
> #-124 Doing copy-only install of “USB\VID_1C06&PID_FFFE\000-0000”.
> #E360 An unsigned or incorrectly signed file “e:\testdrivers\usbumdffinal<br>> wudf.cat” for driver “R&D Test Driver” will be installed (Policy=Ignore).
> Error 0x80092003: An error occurred while reading or writing to a file.
> #W187 Install failed, attempting to restore original files.
> #E360 An unsigned or incorrectly signed file “e:\testdrivers\usbumdffinal<br>> wudf.cat” for driver “R&D Test Driver” will be installed (Policy=Ignore).
> Error 0x80092003: An error occurred while reading or writing to a file.
> #-024 Copying file “e:\testdrivers\usbumdffinal\UsbRnd.dll” to
> “C:\WINDOWS\system32\DRIVERS\UMDF\UsbRnd.dll”.
> #E360 An unsigned or incorrectly signed file
> “e:\testdrivers\usbumdffinal\UsbRnd.dll” for driver “R&D Test Driver” will
> be installed (Policy=Ignore). Error 0x80092003: An error occurred while
> reading or writing to a file.
> #-336 Copying file “e:\testdrivers\usbumdffinal\WudfUpdate_01009.dll” to
> “C:\WINDOWS\system32\WudfUpdate_01009.dll” via temporary file
> “C:\WINDOWS\system32\SET9.tmp”.
> #E360 An unsigned or incorrectly signed file
> “e:\testdrivers\usbumdffinal\WudfUpdate_01009.dll” for driver “R&D Test
> Driver” will be installed (Policy=Ignore). Error 0x80092003: An error
> occurred while reading or writing to a file.
> #-336 Copying file “e:\testdrivers\usbumdffinal\WdfCoInstaller01009.dll” to
> “C:\WINDOWS\system32\WdfCoInstaller01009.dll” via temporary file
> “C:\WINDOWS\system32\SETA.tmp”.
> #E360 An unsigned or incorrectly signed file
> “e:\testdrivers\usbumdffinal\WdfCoInstaller01009.dll” for driver “R&D Test
> Driver” will be installed (Policy=Ignore). Error 0x80092003: An error
> occurred while reading or writing to a file.
> #-336 Copying file “e:\testdrivers\usbumdffinal\WinUsbCoinstaller2.dll” to
> “C:\WINDOWS\system32\WinUsbCoinstaller2.dll” via temporary file
> “C:\WINDOWS\system32\SETB.tmp”.
> #E360 An unsigned or incorrectly signed file
> “e:\testdrivers\usbumdffinal\WinUsbCoinstaller2.dll” for driver “R&D Test
> Driver” will be installed (Policy=Ignore). Error 0x80092003: An error
> occurred while reading or writing to a file.
> #-166 Device install function: DIF_REGISTER_COINSTALLERS.
> #I056 Coinstallers registered.
> #-166 Device install function: DIF_INSTALLINTERFACES.
> #-011 Installing section [Usb_Install.NT.Interfaces] from
> “e:\testdrivers\usbumdffinal\usbrnd.inf”.
> #I054 Interfaces installed.
> #-166 Device install function: DIF_INSTALLDEVICE.
> #I123 Doing full install of “USB\VID_1C06&PID_FFFE\000-0000”.
> #E360 An unsigned or incorrectly signed file
> “e:\testdrivers\usbumdffinal\usbrnd.inf” for driver “R&D Test Driver” will
> be installed (Policy=Ignore). Error 0xe000022f: The third-party INF does not
> contain digital signature information.
> #I163 Device not started: Device has problem: 0x0a: CM_PROB_FAILED_START.
> #I121 Device install of “USB\VID_1C06&PID_FFFE\000-0000” finished
> successfully.
>
> setupact.log
>
> [03/05/2010 10:56.44.515] WudfUpdate: installing version (1,9,0,7600).
> [03/05/2010 10:56.44.546] WudfUpdate: Checking for presence of previous
> UMDF installation.
> [03/05/2010 10:56.44.546] WudfUpdate: File
> C:\WINDOWS\system32\drivers\wudfrd.sys not found.
> [03/05/2010 10:56.44.562] WudfUpdate: UMDF file
> %WINDIR%\system32\drivers\wudfrd.sys not found.
> [03/05/2010 10:56.44.578] WudfUpdate: File
> C:\WINDOWS\system32\drivers\wudfpf.sys not found.
> [03/05/2010 10:56.44.578] WudfUpdate: UMDF file
> %WINDIR%\system32\drivers\wudfpf.sys not found.
> [03/05/2010 10:56.44.578] WudfUpdate: File C:\WINDOWS\system32\wudfhost.exe
> not found.
> [03/05/2010 10:56.44.578] WudfUpdate: UMDF file
> %WINDIR%\system32\wudfhost.exe not found.
> [03/05/2010 10:56.44.578] WudfUpdate: File C:\WINDOWS\system32\wudfsvc.dll
> not found.
> [03/05/2010 10:56.44.578] WudfUpdate: UMDF file
> %WINDIR%\system32\wudfsvc.dll not found.
> [03/05/2010 10:56.44.593] WudfUpdate: File C:\WINDOWS\system32\wudfx.dll
> not found.
> [03/05/2010 10:56.44.593] WudfUpdate: UMDF file %WINDIR%\system32\wudfx.dll
> not found.
> [03/05/2010 10:56.44.593] WudfUpdate: File
> C:\WINDOWS\system32\wudfplatform.dll not found.
> [03/05/2010 10:56.44.593] WudfUpdate: UMDF file
> %WINDIR%\system32\wudfplatform.dll not found.
> [03/05/2010 10:56.44.593] WudfUpdate: File
> C:\WINDOWS\system32\wudfcoinstaller.dll not found.
> [03/05/2010 10:56.44.593] WudfUpdate: UMDF file
> %WINDIR%\system32\wudfcoinstaller.dll not found.
> [03/05/2010 10:56.44.593] WudfUpdate: UMDF installation not found.
> [03/05/2010 10:56.44.593] WudfUpdate: Locating resource stream
> WUDF_UPDATE_XP-SRV03.
> [03/05/2010 10:56.44.593] WudfUpdate: unpacking update from resource to
> Microsoft User-Mode Driver Framework Install-v1.9-WinXP-Srv03.exe.
> [03/05/2010 10:56.44.593] WudfUpdate: Temporary path is
> C:\WINDOWS\Temp\WDFC.tmp.
> [03/05/2010 10:56.44.750] WudfUpdate: Invoking update
> “C:\WINDOWS\Temp\WDFC.tmp\Microsoft User-Mode Driver Framework
> Install-v1.9-WinXP-Srv03.exe” with command line “/quiet /o /ER /norestart
> /log:”%WINDIR%\temp\wudf_update.log"“.
> [03/05/2010 10:56.44.781] WudfUpdate: Waiting for update to terminate.
> [03/05/2010 10:56.56.921] WudfUpdate: Update process returned 0.
> [03/05/2010 10:56.56.921] WudfUpdate: WUDF version 1.9.0 () was installed
> successfully.
> [03/05/2010 10:56.56.921] WudfUpdate: Cleaning up update.
> [03/05/2010 10:56.56.921] WudfUpdate: Loading configuration coinstaller
> from C:\WINDOWS\system32\wudfcoinstaller.dll.
> [03/05/2010 10:56.56.953] WudfCoInstaller: ReadWdfSection: Checking
> WdfSection [Usb_Install.NT.Wdf]
> [03/05/2010 10:56.56.953] WudfCoInstaller: Using I/O dispatcher WinUSB.
> [03/05/2010 10:56.56.968] WudfCoInstaller: Configuring UMDF Service UsbRnd.
> [03/05/2010 10:56.56.968] WudfCoInstaller: UmdfDispatcher set to WinUSB
> [03/05/2010 10:56.56.968] WudfCoInstaller: Using “Pre-Vista” service
> configuration
> [03/05/2010 10:56.57.406] WudfCoInstaller: Service WudfSvc started
> successfully.
> [03/05/2010 10:56.57.406] WudfCoInstaller: Final status: error(0) The
> operation completed successfully.
>
> [03/05/2010 10:56.57.437] WinUSBUpdate: installing version
> (6,1,7600,16385).
> [03/05/2010 10:56.57.437] WinUSBUpdate: Checking for presence of previous
> WinUSB installation.
> [03/05/2010 10:56.57.437] WinUSBUpdate: File
> C:\WINDOWS\system32\drivers\winusb.sys not found.
> [03/05/2010 10:56.57.437] WinUSBUpdate: WinUSB file
> %WINDIR%\system32\drivers\winusb.sys not found.
> [03/05/2010 10:56.57.437] WinUSBUpdate: File C:\WINDOWS\system32\winusb.dll
> not found.
> [03/05/2010 10:56.57.437] WinUSBUpdate: WinUSB file
> %WINDIR%\system32\winusb.dll not found.
> [03/05/2010 10:56.57.468] WinUSBUpdate: WinUSB installation not found.
> [03/05/2010 10:56.57.468] WinUSBUpdate: Locating resource stream
> WINUSB_UPDATE_XP-SRV03.
> [03/05/2010 10:56.57.468] WinUSBUpdate: unpacking update from resource to
> WinUSB.exe.
> [03/05/2010 10:56.57.468] WinUSBUpdate: Temporary path is
> C:\WINDOWS\Temp\WDF16.tmp.
> [03/05/2010 10:56.57.515] WinUSBUpdate: Invoking update
> “C:\WINDOWS\Temp\WDF16.tmp\WinUSB.exe” with command line “/quiet /o /ER
> /norestart /log:”%WINDIR%\temp\winusb_update.log”".
> [03/05/2010 10:56.57.593] WinUSBUpdate: Waiting for update to terminate.
> [03/05/2010 10:57.01.484] WinUSBUpdate: Update process returned 0.
> [03/05/2010 10:57.01.484] WinUSBUpdate: WinUSB version 6.1.7600 (Release)
> was installed successfully.
> [03/05/2010 10:57.01.484] WinUSBUpdate: Cleaning up update.
> WdfCoInstaller: [03/05/2010 10:57.01.500] DIF_INSTALLDEVICE: Pre-Processing
> WdfCoInstaller: [03/05/2010 10:57.01.515] ReadComponents: WdfSection for
> Driver Service WINUSB using KMDF lib version Major 0x1, minor 0x9
> WdfCoInstaller: [03/05/2010 10:57.01.515] DIF_INSTALLDEVICE: Coinstaller
> version: 1.9.7600
> WdfCoInstaller: [03/05/2010 10:57.01.515] GetControlKey:
> RegOpenKeyEx(HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Wdf\Kmdf\KmdfLibrary\Versions)
> failed: error(2) The system cannot find the file specified.
>
> WdfCoInstaller: [03/05/2010 10:57.01.515] KMDF control key was not found
> WdfCoInstaller: [03/05/2010 10:57.01.515] Using default name for KMDF
> service: Wdf01000
> WdfCoInstaller: [03/05/2010 10:57.01.515] GetInMemoryVersionUlong: No
> information about in-memory KMDF version
> WdfCoInstaller: [03/05/2010 10:57.01.515] DIF_INSTALLDEVICE: KMDF in-memory
> version: 0.0.0
> WdfCoInstaller: [03/05/2010 10:57.01.515] GetLatestInstalledVersion: KMDF
> was not previously installed in the system
> WdfCoInstaller: [03/05/2010 10:57.01.515] DIF_INSTALLDEVICE: No need for
> reboot, because KMDF was not found in the system
> WdfCoInstaller: [03/05/2010 10:57.01.765] VerifyMSRoot: exit: error(0) The
> operation completed successfully.
>
> WdfCoInstaller: [03/05/2010 10:57.01.812] Invoking
> “C:\WINDOWS\Temp\WdfTemp\Microsoft Kernel-Mode Driver Framework
> Install-v1.9-Win2k-WinXP-Win2k3.exe /quiet /norestart /o /ER”.
> WdfCoInstaller: [03/05/2010 10:57.06.203] The package was installed
> successfully: error(0) The operation completed successfully.
> .
> WdfCoInstaller: [03/05/2010 10:57.06.203] InstallComponents: KMDF installed
> successfully
> WdfCoInstaller: [03/05/2010 10:57.07.546] DIF_INSTALLDEVICE:
> Post-Processing
> [03/05/2010 10:57.07.578] WudfCoInstaller: Created marker file
> C:\WINDOWS\system32\drivers\Msft_User_UsbRnd_01_09_00.Wdf.
>
>
>
> —
> 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
>
>
> —
> 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
>

My RAC Account wrote:

I tried to debug UMDF driver based on the steps given in the wdk docs.
I’m trying the installation in a xp installed vm ware station. I
installed the wdk debuggers and tools in the vm station also for
debugging.

I Enabled the debugger by changing the registry settings for
*HostProcessDbgBreakOnStart* to 4.
And then tried invoking from wdk xp environment,
windbg –pn WUDFHost.exe
I’m getting the error message *“Unable to find process ‘WUDFHost.exe’,
HRESULT 0x80004002”.* WUDFHost.exe is not getting listed in the Tasklist.
When will the WUDFHost.exe will get start? Which debugging tool can be
used to debug umdf drivers and understand the code flow?

WUDFHost will get started when a UMDF device is detected and the driver
starts running. Is your device actually assigned to the VM?


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

What do you mean by assigned the device to VM? I didnt do anything like
that.

WUDFHost will get started when a UMDF device is detected and the driver
starts running.

In my case I’m getting the error ‘This device cannot start. (code 10)’. I’m
not sure whether the driver loaded successfully or not and why is it not
starting. You suggested me earlier to try debugging the driver and I’m stuck
up with debugging too!

I tried running the chkinf tool. Its giving the error “DriverCLSID is a
copy-paste from WDF Samples.”
The WDK documents are not clear enough for a mere beginner clearly explaing
the steps to be followed for customizing the samples. too many issues. I’m
sorry to say this. I’m really frustrated.

thanks.

On Wed, Mar 17, 2010 at 11:01 AM, Tim Roberts wrote:

> My RAC Account wrote:
> >
> > I tried to debug UMDF driver based on the steps given in the wdk docs.
> > I’m trying the installation in a xp installed vm ware station. I
> > installed the wdk debuggers and tools in the vm station also for
> > debugging.
> >
> > I Enabled the debugger by changing the registry settings for
> > HostProcessDbgBreakOnStart to 4.
> > And then tried invoking from wdk xp environment,
> > windbg ?pn WUDFHost.exe
> > I’m getting the error message “Unable to find process ‘WUDFHost.exe’,
> > HRESULT 0x80004002”.
WUDFHost.exe is not getting listed in the Tasklist.
> > When will the WUDFHost.exe will get start? Which debugging tool can be
> > used to debug umdf drivers and understand the code flow?
>
> WUDFHost will get started when a UMDF device is detected and the driver
> starts running. Is your device actually assigned to the VM?
>
> –
> 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
>

My RAC Account wrote:

What do you mean by assigned the device to VM? I didnt do anything
like that.

USB drivers are only loaded when the hardware devices they drive are
plugged in. No device, no driver. Depending on the virtual server and
the device type, the USB devices you plug in to your physical computer
do not automatically appear inside all of the VMs. With Virtual PC, for
example, I have to tell it which USB devices should be assigned to a
particular VM. If I haven’t made that assignment, the device will not
be seen by the VM, which means no driver will be loaded.

Do you actually see your device in Device Manager inside the VM? If so,
then it is probably appearing, unless you forced the device to appear
using “devcon”.

>WUDFHost will get started when a UMDF device is detected and the
driver starts running.

In my case I’m getting the error ‘This device cannot start. (code
10)’. I’m not sure whether the driver loaded successfully or not and
why is it not starting. You suggested me earlier to try debugging the
driver and I’m stuck up with debugging too!

I tried running the chkinf tool. Its giving the error “DriverCLSID is
a copy-paste from WDF Samples.”
The WDK documents are not clear enough for a mere beginner clearly
explaing the steps to be followed for customizing the samples. too
many issues. I’m sorry to say this. I’m really frustrated.

Whether you’re doing it with WinUSB or KMDF, driving a hardware device
is hard work. There is a lot of learning curve to go through. It’s
going to take you some time.

The documentation does say that you need to generate your own GUID for
WinUSB. Each WinUSB-based device needs its own GUID , so that you can
find your device from within your application, even if there are other
WinUSB-based devices present.


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

Tim,

One Quick question. I tried to install the umdf fx2 sample
driver by plugging in the osr fx2 usb device to learn the code flow. As I
said earlier, its failing. Do we need to change the vid/pid and new GUID for
this device too in inf file?

thanks.

On Wed, Mar 17, 2010 at 12:21 PM, Tim Roberts wrote:

> My RAC Account wrote:
> > What do you mean by assigned the device to VM? I didnt do anything
> > like that.
>
> USB drivers are only loaded when the hardware devices they drive are
> plugged in. No device, no driver. Depending on the virtual server and
> the device type, the USB devices you plug in to your physical computer
> do not automatically appear inside all of the VMs. With Virtual PC, for
> example, I have to tell it which USB devices should be assigned to a
> particular VM. If I haven’t made that assignment, the device will not
> be seen by the VM, which means no driver will be loaded.
>
> Do you actually see your device in Device Manager inside the VM? If so,
> then it is probably appearing, unless you forced the device to appear
> using “devcon”.
>
>
> > >WUDFHost will get started when a UMDF device is detected and the
> > driver starts running.
> >
> > In my case I’m getting the error ‘This device cannot start. (code
> > 10)’. I’m not sure whether the driver loaded successfully or not and
> > why is it not starting. You suggested me earlier to try debugging the
> > driver and I’m stuck up with debugging too!
> >
> > I tried running the chkinf tool. Its giving the error “DriverCLSID is
> > a copy-paste from WDF Samples.”
> > The WDK documents are not clear enough for a mere beginner clearly
> > explaing the steps to be followed for customizing the samples. too
> > many issues. I’m sorry to say this. I’m really frustrated.
>
> Whether you’re doing it with WinUSB or KMDF, driving a hardware device
> is hard work. There is a lot of learning curve to go through. It’s
> going to take you some time.
>
> The documentation does say that you need to generate your own GUID for
> WinUSB. Each WinUSB-based device needs its own GUID , so that you can
> find your device from within your application, even if there are other
> WinUSB-based devices present.
>
> –
> 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
>

Would you mind using your real name instead of “My RAC Account”?

My RAC Account wrote:

One Quick question. I tried to install the umdf fx2 sample
driver by plugging in the osr fx2 usb device to learn the code flow.
As I said earlier, its failing. Do we need to change the vid/pid and
new GUID for this device too in inf file?

Unless I am mistaken, the VID/PID in the INF file in the osrusbfx2/umdf
samples matches the OSR FX2 device (045E/94AA). You can check that
yourself. Go into Device Manager, find the device (it probably has a
yellow bang), double click, go to Details, and look at the Hardware ID.
You should see VID_xxxx&PID_xxxx in there.

You will probably want your own GUID, just so there is never any
confusion, especially if this will ever be used outside your own
computer. After all, GUIDs don’t cost anything.


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