阅读:1181回复:2
win2000为什么不能安装上驱动程序?
我刚学习驱动程序编写,我有一个PCI数据采集卡,生成了card2bd.sys和card2bd.inf文件,通过安装驱动程序向导调入card2bd.inf文件后老装不上驱动程序,我的卡配置的VID为10B5,DID为5201;在dos下能发现PCI卡,我想是不是在inf文件中有PCI\\VEN_10b5&DEV_5201就能发现此卡的配置,我的inf文件如下,请大家帮我检查一下有没有其它问题,非常感谢:
;--------- Version Section --------------------------------------------------- [Version] Signature=\"$Windows NT$\" Provider=%ProviderName% ; If device fits one of the standard classes, use the name and GUID here, ; otherwise create your own device class and GUID as this example shows. Class=HIDClass ClassGUID={745A17A0-74D3-11D0-B6FE00A0C90F57DA} ;--------- SourceDiskNames and SourceDiskFiles Section ----------------------- ; These sections identify source disks and files for installation. They are ; shown here as an example, but commented out. [Manufacturer] %MfgName%=Mfg0 [Mfg0] ; PCI hardware IDs use the form ; PCI\\VEN_10b5&DEV_5201 %DeviceDesc%=Card2bd_DDI, PCI\\VEN_10b5&DEV_5201 [SourceDisksNames] 1 = \"Install Disk\",Disk1 [SourceDisksFiles] Card2bd.sys = 1 ;--------- DestinationDirs Section ------------------------------------------- [DestinationDirs] DefaultDestDir = 12 ;--------- Manufacturer and Models Sections ---------------------------------- ; --------- Windows NT ----------------- [Card2bd_DDI] CopyFiles=CopyCard2bd AddReg=Card2bdRegSection [Card2bdRegSection] HKR,,,,%DeviceClassName% HKR,,Icon,,\"-18\" [Card2bd_DDI.Services] Addservice = Card2bd, 0x00000002, Card2bd_AddService [Card2bd_AddService] DisplayName = %SvcDesc% ServiceType = 1 ; SERVICE_KERNEL_DRIVER StartType = 3 ; SERVICE_DEMAND_START ErrorControl = 1 ; SERVICE_ERROR_NORMAL ServiceBinary = %10%\\System32\\Drivers\\Card2bd.sys ; --------- Files (common) ------------- [CopyCard2bd] Card2bd.sys ;--------- Strings Section --------------------------------------------------- [Strings] ProviderName=\"jiaxun\" MfgName=\"jx\" DeviceDesc=\"2B+D卡\" DeviceClassName=\"Description of Device class here\" SvcDesc=\"2B+D Card for NT\" |
|
沙发#
发布于:2003-07-10 23:46
我也是 这个 问题,
老大 你现在 解决这个问题了吗? |
|
板凳#
发布于:2003-07-14 11:46
解决了,首先看你的驱动入口函数DriverEntry有没有问题,其次好像驱动程序的名字不能和DriverEntry中对设备对象的命名一致。
|
|