64位窗口中的vcp的inf文件

时间:2014-07-16 23:24:38

标签: windows usb

我正在使用内置的Windows VCP驱动程序来连接USB串行端口。 以下* .inf文件适用于32位窗口(尝试使用XP和7),但不适用于64位窗口(尽管只尝试过7次)。谁能指出我的错误在哪里? 谢谢! Dustin Soodak

[Version]
Signature="$Windows NT$"
Class=Ports
ClassGuid={4D36E978-E325-11CE-BFC1-08002BE10318}
Provider=%MFGNAME%
LayoutFile=layout.inf
DriverVer=08/17/2001,5.1.2600.0

[Manufacturer]
%MFGNAME%=DeviceList

[DestinationDirs]
DefaultDestDir=12

[SourceDisksFiles]

[SourceDisksNames]

[DeviceList]


%DESCRIPTION%=DriverInstall, USB\VID_1234&PID_5678

;------------------------------------------------------------------------------
;  Windows 2000/XP Sections
;------------------------------------------------------------------------------

[DriverInstall.nt]
CopyFiles=DriverCopyFiles
AddReg=DriverInstall.nt.AddReg

[DriverCopyFiles]
usbser.sys,,,0x20

[DriverInstall.nt.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,usbser.sys
HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider"

[DriverInstall.nt.Services]
AddService=usbser, 0x00000002, DriverService

[DriverService]
DisplayName=%SERVICE%
ServiceType=1
StartType=3
ErrorControl=1
ServiceBinary=%12%\usbser.sys


;--------------------------------------------------------------------------
; Device driver (64 bit)
;--------------------------------------------------------------------------


[DriverInstall.NTamd64]
include=mdmcpq.inf
CopyFiles=DriverCopyFiles.NTamd64
AddReg=DriverInstall.NTamd64.AddReg

[DriverCopyFiles.NTamd64]
%DRIVERFILENAME%.sys,,,0x20


[DriverInstall.NTamd64.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,%DRIVERFILENAME%.sys
HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider"

[DriverInstall.NTamd64.Services]
AddService=usbser, 0x00000002, DriverService.NTamd64


[DriverService.NTamd64]
DisplayName=%SERVICE%
ServiceType=1
StartType=3
ErrorControl=1
ServiceBinary=%12%\usbser.sys


;------------------------------------------------------------------------------
;  String Definitions
;------------------------------------------------------------------------------

[Strings]





MFGNAME     = "Company"
DESCRIPTION = "Product"
SERVICE     = "Product Update Firmware and Settings"

1 个答案:

答案 0 :(得分:0)

DRIVERFILENAME未定义,但在64位部分中引用。尝试将其更改为usbser.sys,类似于32位部分。

您可以使用ChkINF tool in the WDK验证您的INF文件。这会运行一个脚本来验证您的INF是否正确。