; -- NETSF.INF --
;
; avfw_9 driver INF file - this is the INF for the service (protocol)
; part.
;
; Copyright (c) 1993-2001, Avira 
;
; ----------------------------------------------------------------------
; Notes:
; 0. The term "filter" is used in this INF to refer to an NDIS IM driver that
;    implements a 1:1 relationship between upper and lower bindings.
;
; 1. Items specifically required for a filter have been marked with
;    "!!--Filter Specific--!!" keyword
; 2. In general a filter DOES NOT require a notify object for proper installation.
;    A notify object is only required if one wants to have better control
;    over binding operations or if one wants to receive notifications
;    when other components get installed/removed/bound/unbound.
;    Since Windows 2000 systems do not have support for CopyINF directive,
;    a notify object is required to programmatically copy the miniport INF  
;    file to the system INF directory. Previous versions of this INF file
;    erroneously used to copy the INF files directly by using the CopyFiles 
;    directive.
;    On Windows XP, you can install a filter IM without a notify object.
;    by following the instructions in (4).
;
; 3. If you want to use this INF file with your own IM driver, please
;    make the following modifications:
;    File netsf.inf
;    --------------
;    a. In section [SourceDiskFiles] and [avfw_9.Files.Sys]
;       change avfwim.sys to the name of your own driver binary.
;    b. In section [avfw_9.ndi.AddReg], change values of
;       BindForm and MiniportId to appropriate values.
;    File netsf_m.inf
;    ----------------
;    a. Replace MS_avfw_9MP with InfId of your miniport.
;    b. In section [avfw_9MP.AddService],
;       change ServiceBinary appropriately.
;    c. In section [avfw_9MP.ndi.AddReg],
;       change "avfw_9" in the line having "Service"
;       to reflect the appropriate name
;
;
; ----------------------------------------------------------------------

[Version]
Signature  = "$Windows NT$"
Class      = NetService
ClassGUID  = {4D36E974-E325-11CE-BFC1-08002BE10318}
Provider   = %Msft%
DriverVer=01/22/2013,13.6.0.618
CatalogFile	= avfw.cat


[Manufacturer]
%Msft% = MSFT,NTx86,NTia64,NTamd64

[ControlFlags]

;=========================================================================
;
;=========================================================================

; For Win2K
[Msft]
%avfw_9_Desc% = avfw_9.ndi, av_fltdev9

; For XP and later
[MSFT.NTx86]
%avfw_9_Desc% = avfw_9.ndi, av_fltdev9

[MSFT.NTia64]
%avfw_9_Desc% = avfw_9.ndi, av_fltdev9

[MSFT.NTamd64]
%avfw_9_Desc% = avfw_9.ndi, av_fltdev9

[avfw_9.ndi]
AddReg          = avfw_9.ndi.AddReg, avfw_9.AddReg
Characteristics = 0x4410 ;  NCF_FILTER | NCF_NDIS_PROTOCOL !--Filter Specific--!!
CopyFiles       = avfw_9.Files.Sys
CopyInf         = netsf_m.inf

[avfw_9.ndi.Remove]
DelFiles = avfw_9.Files.Sys

[avfw_9.ndi.Services]
AddService = avfwim,, avfw_9.AddService

[avfw_9.AddService]
DisplayName    = %avfw_9Service_Desc%
ServiceType    = 1 ;SERVICE_KERNEL_DRIVER
StartType      = 3 ;SERVICE_DEMAND_START
ErrorControl   = 1 ;SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\avfwim.sys
LoadOrderGroup = PNP_TDI
AddReg         = avfw_9.AddService.AddReg


[avfw_9.AddService.AddReg]
; ----------------------------------------------------------------------
; Add any miniport-specific parameters here.  These are params that your
; filter device is going to use.
;
;HKR, Parameters, ParameterName,  0x10000, "MultiSz", "Parameter", "Value"
;HKR, Parameters, ParameterName2, 0x10001, 4


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

[SourceDisksFiles]
avfwim.sys=1

[DestinationDirs]
DefaultDestDir = 12
avfw_9.Files.Sys   = 12   ; %windir%\System32\drivers

[avfw_9.Files.Sys]
avfwim.sys,,,2

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

[avfw_9.ndi.AddReg]
HKR, Ndi, HelpText, , %avfw_9_HELP%

; ----------------------------------------------------------------------
; !!--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 av_fltdev9mp (refer to netsf_m.inf)
;
HKR, Ndi,            FilterClass,         , AviraFirewall
HKR, Ndi,            FilterDeviceInfId,   , av_fltdev9mp
HKR, Ndi,            Service,             , avfwim
HKR, Ndi\Interfaces, UpperRange,          , noupper
HKR, Ndi\Interfaces, LowerRange,          , nolower
HKR, Ndi\Interfaces, FilterMediaTypes,    , "ethernet, tokenring, fddi, wan"

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

; ----------------------------------------------------------------------
[Strings]
Msft = "Avira"
DiskDescription = "AvFw Packet Filter Driver Disk"

avfw_9_Desc = "AvFw Packet Filter Driver"
avfw_9_HELP = "AvFw Packet Filter Driver"
avfw_9Service_Desc = "AvFw Packet Filter Service"
