liuffy
驱动牛犊
驱动牛犊
  • 注册日期2010-01-16
  • 最后登录2010-12-10
  • 粉丝0
  • 关注0
  • 积分8分
  • 威望51点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
阅读:1475回复:0

帮忙解决“未知设备”的问题

楼主#
更多 发布于:2010-07-19 16:46
这是我写的一个虚拟磁盘驱动程序的INF文件
为什么一用起来
在设备管理器中总是显示“未知设备”呢?
求好心人帮忙 看一看 谢谢大家!

;
; MYDISK.inf
;

[Version]
Signature = "$Windows NT$"
Class     = MYDISK
ClassGUID = {8C3C0549-B2AF-48DE-9457-92FAD377BEC0}
Provider  = %Author%
DriverVer = 03/26/2010,2.0.3.26

[Manufacturers]
%Owner%=DriverID

[DriverID]
MYDISK = install-section-name,@ROOT\MYDISK\

[install-section-name]
DefaultInstall.NT

[DestinationDirs]
MYDISK.DriverFiles = 12

[DefaultInstall.NT]
CopyFiles = MYDISK.DriverFiles
Addreg    = MYDISK.AddReg

[DefaultInstall.NT.Services]
AddService = MYDISK, , magicdisk.Service.Install

[magicdisk.Service.Install]
DisplayName = %MYDISKServiceName%
Description = %MYDISKServiceDesc%    
ServiceType = 1  ;service kernel driver
StartType = 1    ;start with OS
ErrorControl = 1 ;service error normal
ServiceBinary  = %12%\MYDISK.sys

[MYDISK.DriverFiles]
MYDISK.sys
MYDISK.inf

[MYDISK.AddReg]
HKLM,SYSTEM\CurrentControlSet\Services\MYDISK\Parameters_2
HKLM,SYSTEM\CurrentControlSet\Services\MYDISK\Parameters_2,NumberOfDevices,0x00010001,00000004
HKLM,SYSTEM\CurrentControlSet\Services\Eventlog\System\MYDISK
HKLM,SYSTEM\CurrentControlSet\Services\Eventlog\System\MYDISK,EventMessageFile,0x00020000,%SystemRoot%\System32\drivers\MYDISK.sys
HKLM,SYSTEM\CurrentControlSet\Services\Eventlog\System\MYDISK,TypesSupported,0x00010001,00000007
HKLM,SYSTEM\CurrentControlSet\Services\Eventlog\System,Sources,0x00000008,"MYDISK"

[Strings]
Author = "ME"
MYDISKServiceDesc = "MY Driver Ver.2"
MYDISKServiceName = "MYDISK"
MYDISKRegistry = "SYSTEM\CurrentControlSet\Services\MYDISK"
Owner = "ME"





游客

返回顶部