pzqxidian
驱动牛犊
驱动牛犊
  • 注册日期2003-12-10
  • 最后登录2004-06-05
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
阅读:1021回复:2

急!!!!!!!!!!!!inf文件怎么用啊!!

楼主#
更多 发布于:2003-12-11 17:00
各位网友,你们好,我现在作驱动的,第一次把驱动安装上正常运行,然后卸载,重启机子。把程序修改后,继续安装,这次执行的是第一次安装的结果,请问这是什么原因,该如何修改啊!!!
在此先谢谢各位了!!!
inf文件:
; -- xpassthru.inf --
;
; Sample Filter INF file
;
; Copyright (c) 2001-2002, xstudio technology
; ----------------------------------------------------------------------

[Version]
Signature  = \"$Windows NT$\"
Class      = NetService
ClassGUID  = {4D36E974-E325-11CE-BFC1-08002BE10318}
Provider   = %Msft%
DriverVer  = 12/24/2001,1.00.0.3
;DriverVer  = 12/24/2001,1.00.0.1


[Manufacturer]
%Msft% = MSFT

[ControlFlags]

[MSFT]
%xfilter_Desc% = xfilter.ndi, xs_xfilter

[xfilter.ndi]
AddReg = xfilter.ndi.AddReg, xfilter.AddReg
; Note:
; 1. The NCF_* flags are defined in netcfgx.h
; 2. NCF_HAS_UI (0x80) is required only if the filter has a Notify object
;    and it supports custom property pages.
Characteristics = 0x490 ; NCF_HAS_UI | NCF_FILTER | NCF_NO_SERVICE !!--Filter Specific--!!
CopyFiles       = xfilter.CopyFiles.Init, xfilter.CopyFiles.Sys, xfilter.CopyFiles.Inf

; ----------------------------------------------------------------------
; File copy
;
[SourceDisksNames]
1=%DiskDescription%,\"\",,

[SourceDisksFiles]
xsfilter.dll=1
xpassthru.sys=1
xftowin.inf=1

[DestinationDirs]
DefaultDestDir = 12
xfilter.CopyFiles.Init  = 11   ; %windir%\\System32
xfilter.CopyFiles.Sys   = 12   ; %windir%\\System32\\drivers
xfilter.CopyFiles.Inf   = 17   ; %windir%\\inf

; Copying of xsfilter.dll is required only if the filter has a Notify object
[xfilter.CopyFiles.Init]
xsfilter.dll,,,2

[xfilter.CopyFiles.Sys]
xpassthru.sys,,,2

[xfilter.CopyFiles.Inf]
xftowin.inf,,,2

; ----------------------------------------------------------------------
; Filter Install
;

[xfilter.ndi.AddReg]
HKR, Ndi, HelpText, , %xfilter_HELP%

; ----------------------------------------------------------------------
; Keys required if a Notify object is present
; These keys should be omitted if the Filter does not have any Notify object
;
; Note:
; 1. Only include the following lines if your filter has configuration UI
;    that needs to be displayed.  Otherwise, you should not need a notify
;    object.
; 2. If you write your own notifyobject, use a different GUID for ClsID!!
;    (Generate this with uuidgen.exe)
;
HKR, Ndi, ClsID,        , {df2e4f67-e93a-11d1-bb14-0000f8779076}
;HKR, Ndi, ClsID,        , {df2e4f67-e93a-11d1-bb14-0000f8779051}
HKR, Ndi, ComponentDll, , xsfilter.dll

; ----------------------------------------------------------------------
; !!--Filter Specific--!!
;
; Note:
; 1. Other components may also have UpperRange/LowerRange but for filters
;    the value of both of them must be noupper/nolower
; 2. The value FilterClass is required.
; 3. The value Service is required
; 4. FilterDeviceInfId is the InfId of the filter device (miniport) that will
;    be installed for each filtered adapter.
;    In this case this is xs_xfiltermp (refer to xftowin.inf)
;
HKR, Ndi,            FilterClass,         , failover
HKR, Ndi,            FilterDeviceInfFile, , xftowin.inf
HKR, Ndi,            FilterDeviceInfId,   , xfiltermp
HKR, Ndi,            Service,             , xfilter
HKR, Ndi\\Interfaces, UpperRange,          , noupper
HKR, Ndi\\Interfaces, LowerRange,          , nolower
HKR, Ndi\\Interfaces, FilterMediaTypes,    , \"ethernet, tokenring, fddi\"

[xfilter.AddReg]
; The following key is Required
; The following key is xfilter specific
HKR, Parameters, Param1, 0, 4

[xfilter.Ndi.Remove.Services]
    DelService = xfilter

; ----------------------------------------------------------------------
[Strings]
Msft = \"xstudio\"
DiskDescription = \"xstudio Sample Filter Disk\"

xfilter_Desc = \"Xstudio Sample Filter\"
xfilter_HELP = \"Xstudio Sample Filter\"



y5318
驱动中牛
驱动中牛
  • 注册日期2001-09-18
  • 最后登录2018-05-29
  • 粉丝1
  • 关注0
  • 积分14分
  • 威望22点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
  • 社区居民
沙发#
发布于:2003-12-12 07:45
你在从新安装的时候应将原来的存放在inf文件删掉, 然后在安装, 着应该与inf 文件无关~_~
CYoung
驱动中牛
驱动中牛
  • 注册日期2003-06-10
  • 最后登录2005-01-04
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
板凳#
发布于:2003-12-12 08:50
把原来的驱动程序和inf文件全都删了,就可以了
答得好的话,请兄弟们加点分,那是对我的肯定
游客

返回顶部