>You shouldn’t need to download it. It is part of the WDK, just like
WUDFUpdate. In fact, it’s in the same directory as WUDFUpdate.
Yes got the winusbcoinstaller2.dll from Windows Kit folder & replaced it with the downloaded winusbcoinstaller2.dll file in the folder.
This seems more or less correct. Have you checked that your driver DLL
is present in System32\Drivers\UMDF?
No I don’t find my driver DLL in System32\Drivers\UMDF folder. when I install the sample VirtualSerial driver with the original .inf file with the following command.
devcon.exe install VirtualSerial.inf UMDF\VirtualSerial.inf
Then I can see the virtualSerial DLL in System32\Drivers\UMDF folder.
So instead of using
devcon.exe install VirtualSerial.inf “USB\VIDxxx&PIDxxxx”
command for installing the edited VirtualSerial driver I used the following command
devcon.exe update VirtualSerial.inf “UMDF\VIDxxx&PIDxxxx”
Still I cannot find the VirtualSerial Driver DLL in System32\Drivers\UMDF folder
Can you export the registry at
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Enum\USB\VID_1201&PID_4954
so we can see that it all got installed correctly?
Here You go…
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB\VID_1201&PID_4954]
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB\VID_1201&PID_4954\49-544C2D323030-ED]
“DeviceDesc”=“@oem42.inf,%virtualserialdevicename%;Practical Automation Driver”
“LocationInformation”=“Port_#0002.Hub_#0003”
“Capabilities”=dword:00000014
“HardwareID”=hex(7):55,00,53,00,42,00,5c,00,56,00,49,00,44,00,5f,00,31,00,32,\
00,30,00,31,00,26,00,50,00,49,00,44,00,5f,00,34,00,39,00,35,00,34,00,26,00,\
52,00,45,00,56,00,5f,00,30,00,31,00,30,00,37,00,00,00,55,00,53,00,42,00,5c,\
00,56,00,49,00,44,00,5f,00,31,00,32,00,30,00,31,00,26,00,50,00,49,00,44,00,\
5f,00,34,00,39,00,35,00,34,00,00,00,00,00
“CompatibleIDs”=hex(7):55,00,53,00,42,00,5c,00,43,00,6c,00,61,00,73,00,73,00,\
5f,00,30,00,37,00,26,00,53,00,75,00,62,00,43,00,6c,00,61,00,73,00,73,00,5f,\
00,30,00,31,00,26,00,50,00,72,00,6f,00,74,00,5f,00,30,00,32,00,00,00,55,00,\
53,00,42,00,5c,00,43,00,6c,00,61,00,73,00,73,00,5f,00,30,00,37,00,26,00,53,\
00,75,00,62,00,43,00,6c,00,61,00,73,00,73,00,5f,00,30,00,31,00,00,00,55,00,\
53,00,42,00,5c,00,43,00,6c,00,61,00,73,00,73,00,5f,00,30,00,37,00,00,00,00,\
00
“ContainerID”=“{e88fe729-a210-5695-b65a-66ec4caec176}”
“ConfigFlags”=dword:00000000
“ClassGUID”=“{4d36e978-e325-11ce-bfc1-08002be10318}”
“Driver”=“{4d36e978-e325-11ce-bfc1-08002be10318}\0003”
“LowerFilters”=hex(7):57,00,69,00,6e,00,55,00,73,00,62,00,00,00,00,00
“Class”=“Ports”
“Mfg”=“@oem42.inf,%msftumdf%;Chetu1”
“Service”=“WUDFRd”
“FriendlyName”=“Practical Automation Driver (COM41)”
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB\VID_1201&PID_4954\49-544C2D323030-ED\Device Parameters]
“PortName”=“COM41”
“PollingPeriod”=dword:00000000
“WinUsbPowerPolicyOwnershipDisabled”=dword:00000001
“SymbolicName”=“\??\USB#VID_1201&PID_4954#49-544C2D323030-ED#{a5dcbf10-6530-11d2-901f-00c04fb951ed}”
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB\VID_1201&PID_4954\49-544C2D323030-ED\Device Parameters\WUDF]
“DriverList”=hex(7):56,00,69,00,72,00,74,00,75,00,61,00,6c,00,53,00,65,00,72,\
00,69,00,61,00,6c,00,00,00,00,00
“ImpersonationLevel”=dword:00000002
“KernelModeClientPolicy”=dword:00000001
“UmdfDispatcher”=“WinUSB”
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB\VID_1201&PID_4954\49-544C2D323030-ED\Device Parameters\WudfPowerPolicySettings]
“WdfDefaultIdleInWorkingState”=dword:00000001
“WdfDefaultWakeFromSleepState”=dword:00000001
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB\VID_1201&PID_4954\49-544C2D323030-ED\Device Parameters\WUDFDiagnosticInfo]
“LifetimeID”=“b5faf053-b310-4b54-9e4a-ba6954597164”
“HostPid”=hex(b):0c,0f,00,00,00,00,00,00
“RetrievalMode”=dword:00000000
“RwTransferMode”=dword:00000000
“IoctlTransferMode”=dword:00000000
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB\VID_1201&PID_4954\49-544C2D323030-ED\LogConf]
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB\VID_1201&PID_4954\49-544C2D323030-ED\Control]
“ActiveService”=“WUDFRd”
Have you done enough
debug prints to see that your driver is actually getting loaded?
I havn’t added any extra debug prints I’m relying on the default debug prints that was present in the sample VirtualSerial driver code