Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Can't load bulkusb.sys into the system?

78 views
Skip to first unread message

bluestar

unread,
Sep 19, 2008, 7:43:24 AM9/19/08
to
Dear Sir:

I build the sample code:usb\bulkusb in WDK6001 and change
VID&PID of INF
File to match my device.

I plug-in my device and assign INF file to Wizard, but It
will show message:
"Windows can't load this driver for the hardware. (Code 39)". If I
change INF(show
below) file, it shows message:"System can't find specific file", even
I use "ChkInf"
and it is OK.

Could Anyone tell me why can't load this driver?

Thanks for your kindly help

//-----------------------------------------------------------------------------------------------------------------//
[Version]
Signature="$CHICAGO$"
Class=USB
ClassGUID={36FC9E60-C465-11CF-8056-444553540000}
Provider=%PRO%
DriverVer=09/19/2008,2.0.0.1
CatalogFile=usbtest.cat

[SourceDisksNames]
1=%Disk_Description%,,,

[SourceDisksFiles]
usbtest.sys = 1
usbtest64.sys = 1

[Manufacturer]
%MfgName%=PRO,NTx86,NTamd64

[PRO.NTx86]
%DeviceDesc%=USBTestDev, USB\VID_05E3&PID_2353

[PRO.NTAMD64]
%DeviceDesc%=USBTestDev, USB\VID_05E3&PID_2353

[DestinationDirs]
DefaultDestDir = 12

[USBTestDev.NT]
CopyFiles=USBTest.NTFiles.Copy

[USBTest.NTFiles.Copy]
usbtest.sys

[USBTestDev.NT.Services]
Addservice = usbtest, 0x00000002, USBTest.NT.AddService

[USBTestDev.NTamd64]
CopyFiles=USBTest.NTamd64Files.Copy

[USBTest.NTamd64Files.Copy]
usbtest64.sys

[USBTestDev.NTamd64.Services]
Addservice = usbtest64, 0x00000002, USBTest.NTamd64.AddService

[USBTest.NT.AddService]
DisplayName = %USBTest.SvcDesc%
ServiceType = 1 ; SERVICE_KERNEL_DRIVER
StartType = 3 ; SERVICE_DEMAND_START
ErrorControl = 1 ; SERVICE_ERROR_NORMAL
ServiceBinary = %10%\System32\Drivers\usbtest.sys
AddReg = USBTest.NTService.AddReg
LoadOrderGroup = Base

[USBTest.NTService.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,usbtest.sys
HKR,"Parameters","MaximumTransferSize",0x10001,4096
HKR,"Parameters","DebugLevel",0x10001,2
HKR,"Parameters","BulkUsbEnable",0x10001,1
;---------------------------------------------------------------;
[Strings]
PRO = "AAA Co."
MfgName = "AB"
Disk_Description = "AAA Installation Disk"
USBTest.SvcDesc = "AAA for TestChipset"
DeviceDesc = "AAA for Test"

Tim Roberts

unread,
Sep 20, 2008, 11:48:23 PM9/20/08
to
bluestar <bluest...@gmail.com> wrote:
>
> I build the sample code:usb\bulkusb in WDK6001 and change
>VID&PID of INF File to match my device.
>
> I plug-in my device and assign INF file to Wizard, but It
>will show message:
>"Windows can't load this driver for the hardware. (Code 39)". If I
>change INF(show below) file, it shows message:"System can't find specific
>file", even I use "ChkInf" and it is OK.
>
> Could Anyone tell me why can't load this driver?

Did you have your driver file, usbtest.sys, in the same directory as the
INF file?
--
Tim Roberts, ti...@probo.com
Providenza & Boekelheide, Inc.

Message has been deleted

bluestar

unread,
Sep 22, 2008, 8:53:35 AM9/22/08
to
Dear Tim:

Yes, I put inf, sys in the same directory, but failed to
install. I am back to sample code of older DDK version and
found the source code in DDK3791 loads successfully, but
WDK6000 and WDK6001 fail to load.

I know it maybe good good source code for latest version,
but it doesn't apply to bulkusb sample code.

Do you know how to load successfully if I want to use
latest version?

On 9月21日, 上午11時48分, Tim Roberts <t...@probo.com> wrote:
> Did you have your driver file, usbtest.sys, in the same directory as the
> INF file?
> --

> Tim Roberts, t...@probo.com
> Providenza & Boekelheide, Inc.

Don Burn

unread,
Sep 22, 2008, 9:06:36 AM9/22/08
to
Well you have not said how you built the driver and what OS you are loading
on? One presumes you are building it for the correct target OS or earlier
than you are running on? Assuming that you are building correctly, look at
http://www.microsoft.com/whdc/driver/install/setupapilog.mspx on how to get
the log of the install.


--
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr
Remove StopSpam to reply


"bluestar" <bluest...@gmail.com> wrote in message
news:630cf2af-62dc-4051...@x16g2000prn.googlegroups.com...

Message has been deleted

bluestar

unread,
Sep 23, 2008, 7:37:04 AM9/23/08
to
Dear sir:

I use WDK6001 to build this sample code and load this driver in
WinXP.
I already found if I remove all codes about FlagWWDispatched
variable and Not use RtlIsNtDdiVersionAvailable() to judge OS
version.
It will load successfully.

Thanks for your information.
I will check it.

On 9月22日, 下午9時06分, "Don Burn" <b...@stopspam.windrvr.com> wrote:
> Well you have not said how you built the driver and what OS you are loading
> on? One presumes you are building it for the correct target OS or earlier

> than you are running on? Assuming that you are building correctly, look athttp://www.microsoft.com/whdc/driver/install/setupapilog.mspxon how to get

0 new messages