gzlinwj
驱动牛犊
驱动牛犊
  • 注册日期2004-06-25
  • 最后登录2004-07-31
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
阅读:980回复:0

用DriverStudio2.6的"Network Driver Wizard"生成的 .INF 文件在 Win2000 Server 下为什么安装不了,一片空白??

楼主#
更多 发布于:2004-07-17 10:35
请问:
   用DriverStudio2.6的"Network Driver Wizard"生成的 .INF 文件在 Win2000 Server 下为什么安装不了,一片空白??哪里漏了??请指教。

下面是系统自动生成的两个 .INF 文件,
1) NETFILTER.INF

; -- NETFILTER.INF --
;
; tmp_ndis Filter Service INF file
;
; Copyright (c) 2000
;
; NOTE
; ====
; A network filter component has the following two parts: filter service and filter device.
; A network filter's service and device belong to the same filter driver.
; Installing a network filter requires INF files for both the filter service and
; the filter device, netFilter.inf and netFilterMp.inf
;

[Version]
Signature  = "$Windows NT$"
Class      = NetService
ClassGUID  = {4D36E974-E325-11CE-BFC1-08002BE10318}
Provider   = %NuMega%
DriverVer  = 1/1/,2004,1.0


[Manufacturer]
%NuMega% = Models

[ControlFlags]

[Models]
%tmp_ndisFilter_Desc% = tmp_ndisFilter.ndi, Nm_tmp_ndisFilter

[tmp_ndisFilter.ndi]
AddReg = tmp_ndisFilter.ndi.AddReg, tmp_ndisFilter.AddReg
Characteristics = 0x490 ; NCF_HAS_UI | NCF_FILTER | NCF_NO_SERVICE
CopyFiles = tmp_ndisFilter.CopyFiles.Init, tmp_ndisFilter.CopyFiles.Sys, tmp_ndisFilter.CopyFiles.Inf

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

[SourceDisksFiles]
tmp_ndisNotObj.dll=1
tmp_ndis.sys=1
netFilterMp.inf=1

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

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

[tmp_ndisFilter.CopyFiles.Sys]
tmp_ndis.sys,,,2

[tmp_ndisFilter.CopyFiles.Inf]
netFilterMp.inf,,,2

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

[tmp_ndisFilter.ndi.AddReg]
;
; Service NDI keys
;
; 'FilterClass': determines the filter's order in a stack of filters; 'failover' is
;                the lowest. Could it be 'unknown' or something?
; 'FilterDeviceInfFile' and 'FilterDeviceInfId' refer to the miniport portion of the filter
; 'FilterMediaTypes': mediums the filter deals with. Should match to the array
;                     returned by KNdisFilterBinding::Open()
;
HKR, Ndi,            Service,             , tmp_ndis
HKR, Ndi,            FilterClass,         , failover
HKR, Ndi,            FilterDeviceInfFile, , netFilterMp.inf
HKR, Ndi,            FilterDeviceInfId,   , Nm_tmp_ndisFiltermp
HKR, Ndi\Interfaces, UpperRange,          , noupper
HKR, Ndi\Interfaces, LowerRange,          , nolower
HKR, Ndi\Interfaces, FilterMediaTypes,    , "ethernet, tokenring, fddi, wan"

HKR, Ndi, HelpText, , %tmp_ndisFilter_HELP%

; ----------------------------------------------------------------------
; Keys required if a Notify object is present
; These keys should be omitted if the Filter does not have any Notify object
;
HKR, Ndi, ClsID,        , {12D25D65-9D2F-42A4-9700-6286B03EFC6A}
HKR, Ndi, ComponentDll, , tmp_ndisNotObj.dll

[tmp_ndisFilter.AddReg]
; TODO: Add protocol-specific params accessible from KNdisFilterBinding::Open()
;
HKR, Parameters, Mediums, 0, 31

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

; ----------------------------------------------------------------------
[Strings]
Provider = "NuMega"
NuMega = "NuMega"
DiskDescription = "tmp_ndis Filter Install Disk"
tmp_ndisFilter_Desc = "tmp_ndis Filter"
tmp_ndisFilter_HELP = "Processes network packets in TBD way for TBD purpose"
windir="d:\WINNT"




2) NETTMP_NDISMP.INF

; -- NETTMP_NDISMP.INF --
;
; tmp_ndis Filter Miniport INF file
;
; For intermediate filters, this file is a supplement to netFilter.inf
; and is used to install a miniport part of the intermediate filter.
; For generic (non-filter) intermediate drivers, this file is a
; supplement to nettmp_ndis.inf and is used by the notify object to
; install the miniport part of the intermediate driver.  
;
; Copyright (c) 2001

[Version]
signature  = "$Windows NT$"
Class      = Net
ClassGUID  = {4d36e972-e325-11ce-bfc1-08002be10318}
Provider   = %NuMega%
DriverVer  = 1/1/2004,1.0

[ControlFlags]
ExcludeFromSelect = Nm_tmp_ndisFiltermp

[DestinationDirs]
DefaultDestDir=12
; No files to copy

[Manufacturer]
%NuMega% = Models

[Models]
%tmp_ndisFilterMP_Desc% = tmp_ndisFilterMP.ndi, Nm_tmp_ndisFiltermp

[tmp_ndisFilterMP.ndi]
Characteristics = 0x01 ;NCF_VIRTUAL. Consider: NCF_NOT_USER_REMOVABLE | NCF_HIDDEN
CopyFiles =

[tmp_ndisFilterMP.ndi.Services]
AddService = tmp_ndis,0x2, tmp_ndisFilterMP.AddService


[tmp_ndisFilterMP.AddService]
DisplayName    = %tmp_ndisFilterMP_Desc%
ServiceType    = 1 ;SERVICE_KERNEL_DRIVER
StartType      = 3 ;SERVICE_DEMAND_START
ErrorControl   = 1 ;SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\tmp_ndis.sys
LoadOrderGroup = PNP_TDI
AddReg         = tmp_ndisFilterMP.AddService.AddReg


[tmp_ndisFilterMP.AddService.AddReg]
; ----------------------------------------------------------------------
; Add any miniport-specific parameters here. Those are accessed
; from KNdisFilterAdapter::Initialize() and tmp_ndisAdapter::OnInitialize()
;
HKR, NDI\params\MaxPoolSize,           ParamDesc,      0, %MaxPoolSize%
HKR, NDI\params\MaxPoolSize,           type,           0, "dword"
HKR, NDI\params\MaxPoolSize,           default,        0, 1024
HKR, NDI\params\MaxPoolSize,           optional,       0, "1"
HKR, NDI\params\MaxPoolSize,           max,       0, 65535

[SourceDisksNames]
;None

[SourceDisksFiles]
;None

[Strings]
Provider = "NuMega"
NuMega = "NuMega"
tmp_ndisFilterMP_Desc = "tmp_ndis Filter Miniport"
MaxPoolSize = "Maximum number of packet descriptors for repackaging"


游客

返回顶部