阅读:1133回复:5
晷於inf, 撅急求助, 立刻斤分!
以下
|
|
最新喜欢:tomaso... |
沙发#
发布于:2002-05-31 15:17
你是第一次安装就报找不到区域还是安装过以后才报的?
那我再给你一个,这个是我提供的已使用无数的INF文件: ;; The Win2K DDK documentation contains an excellent INF reference. ;--------- Version Section --------------------------------------------------- [Version] Signature=\"$CHICAGO$\" Provider=XxxDevice DriverVer=11/02/2001,3.0.0.3 ; 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=NewDeviceClass ClassGUID={ff646f80-8def-11d2-9449-00105a075f6b} ;--------- SourceDiskNames and SourceDiskFiles Section ----------------------- ; These sections identify source disks and files for installation. They are ; shown here as an example, but commented out. ;[SourceDisksNames] ;1 = \"Install Disk\",Disk1,, ;[SourceDisksFiles] ;YourDrv.sys = 1,, ;--------- ClassInstall/ClassInstall32 Section ------------------------------- ; Not necessary if using a standard class ; 9X Style [ClassInstall] Addreg=Class_AddReg ; NT Style [ClassInstall32] Addreg=Class_AddReg [Class_AddReg] HKR,,,,%DeviceClassName% HKR,,Icon,,\"-5\" ;--------- DestinationDirs Section ------------------------------------------- [DestinationDirs] YouMark_FIles_Driver = 10,System32\\Drivers ;--------- Manufacturer and Models Sections ---------------------------------- [Manufacturer] %MfgName%=Mfg0 [Mfg0] ; PCI hardware IDs use the form ; PCI\\VEN_aaaa&DEV_bbbb&SUBSYS_cccccccc&REV_dd ;改成你自己的ID %DeviceDesc%=YouMark_DDI, PCI\\VEN_9999&DEV_9999 ;---------- DDInstall Sections ----------------------------------------------- ; --------- Windows 9X ----------------- ; Experimentation has shown that DDInstall root names greater than 19 characters ; cause problems in Windows 98 [YouMark_DDI] CopyFiles=YouMark_FIles_Driver AddReg=YouMark_9X_AddReg [YouMark_9X_AddReg] HKR,,DevLoader,,*ntkern HKR,,NTMPDriver,,YourDrv.sys HKR, \"Parameters\", \"BreakOnEntry\", 0x00010001, 0 ; --------- Windows NT ----------------- [YouMark_DDI.NT] CopyFiles=YouMark_FIles_Driver AddReg=YouMark_NT_AddReg [YouMark_DDI.NT.Services] Addservice = YouMark, 0x00000002, YouMark_AddService [YouMark_AddService] DisplayName = %SvcDesc% ServiceType = 1 ; SERVICE_KERNEL_DRIVER StartType = 3 ; SERVICE_DEMAND_START ErrorControl = 1 ; SERVICE_ERROR_NORMAL ServiceBinary = %10%\\System32\\Drivers\\YourDrv.sys [YouMark_NT_AddReg] HKLM, \"System\\CurrentControlSet\\Services\\YouMark\\Parameters\",\\ \"BreakOnEntry\", 0x00010001, 0 ; --------- Files (common) ------------- [YouMark_FIles_Driver] YourDrv.sys ;--------- Strings Section --------------------------------------------------- [Strings] ProviderName=\"??? Ltd.\" MfgName=\"公司名\" DeviceDesc=\"设备名\" DeviceClassName=\"XxxDevice\" SvcDesc=\"???\" |
|
板凳#
发布于:2002-05-31 15:49
第一次安砚就
|
|
地板#
发布于:2002-06-02 23:55
按照你的设备用DriverStudio的向导生成一个项目,然后只用它的inf文件,我的pci板就是这么做的,工作的挺好,楼上的同志好像也是这么做的。看对你有没有帮助,也许你的设备特殊一些。
|
|
|
地下室#
发布于:2002-06-03 08:38
你可查阅DDK的文档,那里对INF文件的各个节有详细的描述。
改错了也不怕,大不了再改回来。 我不知你个驱动是怎么作的,我一般是用向导(Numega or Walter\'s)生成的,然后就自带了一个INF文件,在其基础上稍作改动即可。你也可以用向导生成一个,然后改。 不知这个INF文件,你是否可用? |
|
5楼#
发布于:2002-06-03 10:16
你可查阅DDK的文档,那里对INF文件的各个节有详细的描述。 可以用, 我已 |
|