阅读:1400回复:1
请站长和大虾帮忙看一下
请问一个inf的问题,望大虾指教
我在编写一个usb驱动程序的inf文件时, 不明白[sourcedisksnames]和[sourcedisksfiles] 部分,比如如果我的驱动程序xx.sys在硬盘的d盘 根目录上,如何写[sourcedisksnames]呢? 在ddk中一般写为: 1 = "install disk1",disk1,, 但是我的xx.sys在硬盘上,该怎么写呢? 本人菜鸟,望各位大虾指教! 多谢! Re: 请问一个inf的问题,望大虾指教 这只是一个标志、,第一次的时候还是要你自己指定,以后系统就记住了 Re: Re: 请问一个inf的问题,望大虾指教 多谢指教,不过我的inf如下,安装时老是提示请插入"install disk" 盘,不知道什么原因,你所说的还是要指定是什么意思,在哪儿指定, 很多问题都很幼稚,不要见笑,望各位多多帮忙,再次谢过: [Version] Signature="$Windows 95$" Provider=%ProviderName% Class=NewDeviceClass ClassGUID={ff646f80-8def-11d2-9449-00105a075f6b} [SourceDisksNames] 1 = "install disk",,0 [SourceDisksFiles] Usbdriver.sys = 1 ;--------- ClassInstall/ClassInstall32 Section ------------------------------- [ClassInstall] Addreg=Class_AddReg ; NT Style [ClassInstall32] Addreg=Class_AddReg [Class_AddReg] HKR,,,,%DeviceClassName% HKR,,Icon,,"-18" [DestinationDirs] Usbdriver_Files_Driver = 10,System32\Drivers [Manufacturer] %MfgName%=Mfg0 [Mfg0] %DeviceDesc%=Usbdriver_DDI, USB\VID_0400&PID_c35b ;---------- DDInstall Sections ----------------------------- [Usbdriver_DDI] CopyFiles=Usbdriver_Files_Driver AddReg=Usbdriver_9X_AddReg [Usbdriver_9X_AddReg] HKR,,DevLoader,,*ntkern HKR,,NTMPDriver,,Usbdriver.sys ; --------- Windows NT ----------------- [Usbdriver_DDI.NT] CopyFiles=Usbdriver_Files_Driver [Usbdriver_DDI.NT.Services] Addservice = Usbdriver, 0x00000002, Usbdriver_AddService [Usbdriver_AddService] DisplayName = %SvcDesc% ServiceType = 1 ; SERVICE_KERNEL_DRIVER StartType = 3 ; SERVICE_DEMAND_START ErrorControl = 1 ; SERVICE_ERROR_NORMAL ServiceBinary = %10%\System32\Drivers\Usbdriver.sys ; --------- Files (common) ------------- [Usbdriver_Files_Driver] Usbdriver.sys ;--------- Strings Section --------------------------------------------------- [Strings] ProviderName="Your Company Name here" MfgName="Name of HW Manufacturer here" DeviceDesc="Description of Device here" DeviceClassName="Description of Device class here" SvcDesc="Description of NT service here" |
|
沙发#
发布于:2001-09-20 13:10
用户被禁言,该主题自动屏蔽! |
|