阅读:1219回复:5
inf文件急问!!!
在<< The Windows 2000 Device Driver book>>(Art Baker)一书中的第九章例子minpnp.sys怎么样才能用INF文件装上去?我写了一个INF,但是老是提示说“A section was not found in the INF file!”请哪位指点一二?我把INF贴出来大家帮我看看:
[Version] Signature=$Windows NT$ Class=Sample ClassGuid={894A7940-A033-11d2-821E-444553540000} Provider=\"wang\" [Manufacturer] \"wang\"=DeviceList [DeviceList] \"wang minpnp\"=DriverInstall,*PNP1234 [DriverInstall] CopyFiles=DriverCopyFiles AddReg=DriverRegSection [DriverCopyFiles] minpnp.sys,,,2 [DriverRegSection] HKR,\"parameters\",\"minimalPNP\",0x10001,0 [DriverInstall.Services] AddService=Minpnp,2,DriverService [DriverService] ServiceType=1 StartType=3 ErrorControl=1 ServiceBinary=%12%\\Minpnp.sys [DestinationDirs] DefaultDestDir=12 |
|
沙发#
发布于:2005-06-14 10:05
[SourceDisksNames]
[SourceDisksFiles] 怎么没有这两个节呢??? |
|
|
板凳#
发布于:2005-06-14 10:33
我觉得因为都是一个盘上的文件,就没必要用了吧?请指点一个真正的PNP驱动的INF应该怎么写?哪些是必须的?
|
|
地板#
发布于:2005-06-14 12:09
[DriverInstall.Services.NT]
|
|
地下室#
发布于:2005-06-14 12:48
已经有了啊
|
|
5楼#
发布于:2005-07-16 23:10
在<< The Windows 2000 Device Driver book>>(Art Baker)一书
中的第九章例子minpnp.sys怎么样才能用INF文件装上去?我写了一 个INF,但是老是提示说“A section was not found in the INF file!” 请哪位指点一二?我把INF贴出来大家帮我看看: [Version] Signature=$Windows NT$ Class=Sample // USB ClassGuid={894A7940-A033-11d2-821E-444553540000} // USB install GUID Provider="wang" [Manufacturer] "wang"=DeviceList // %MfgName%=Philips 出错 [DeviceList] "wang minpnp"=DriverInstall,*PNP1234 // ????? /// ??? %USB\VID_0471&PID_0666.DeviceDesc%=D12TEST.Dev, USB\VID_0471&PID_0666 [DriverInstall] CopyFiles=DriverCopyFiles AddReg=DriverRegSection [DriverCopyFiles] minpnp.sys,,,2 // ??? minpnp.sys 出错 [DriverRegSection] HKR,"parameters","minimalPNP",0x10001,0 // HKR,,DevLoader,,*ntkern // HKR,,NTMPDriver,,D12TEST.sys // HKLM,"System\Currentcontrolset\Services\D12TEST\Parameters","MaximumTransferSize",0x10001,65536 // HKLM,"System\Currentcontrolset\Services\D12TEST\Parameters","DebugLevel",0x10001,2 [DriverInstall.Services] AddService=Minpnp,2,DriverService // AddService=Minpnp,2,Minpnp.DriverService [DriverService] ServiceType=1 StartType=3 ErrorControl=1 ServiceBinary=%12%\Minpnp.sys [DestinationDirs] DefaultDestDir=12 我给你找出来了,你能否将该电子书给我.<< The Windows 2000 Device Driver book>> |
|