;/*++
;
;Copyright (c) 1984-2012 Sangoma Technologies All rights Reserved
;
;Module Name:
;    NETSANGO.INF
;
;Author:
;	David Rokhvarg <davidr@sangoma.com>
;
;Description:
;    INF file for wanpipe.sys - Sangoma (NDIS) Network driver on Windows XP/2003/2008/7.
;
;--*/

[version]
signature   = "$Windows NT$"
Class	    = Net
ClassGUID   = {4d36e972-e325-11ce-bfc1-08002be10318}
Provider    = %V_Sangoma%
DriverVer   = 02/04/2014, 7.0.9.4

CatalogFile.ntx86=Netsango.ntx86.cat
CatalogFile.NTamd64=Netsango.ntX64.cat

[Manufacturer]
%V_Sangoma%=Sangoma,NTx86,NTamd64

[SourceDisksNames.x86]
1 = %DiskId1%,,,""
2 = %DiskId1%,,,\x86

[SourceDisksNames.amd64]
1 = %DiskId1%,,,""
2 = %DiskId1%,,,\x64

[ControlFlags]
;excludeFromSelect=SangomaAdapter\AFT_IFACE

[SourceDisksFiles]
wanpipe.sys		= 2,,
;wanpipecfg.dll	= 1,,

; For XP and later. 32bit
[Sangoma.NTx86]
%DeviceDesc.AFT% = sang_net_if.ndi,		SangomaAdapter\SPROTOCOL_IFACE
%DeviceDesc.ADSL% = sang_adsl_net_if.ndi, 	SangomaAdapter\ADSL_NET__IFACE

; For XP and later. 64bit
[Sangoma.NTamd64]
%DeviceDesc.AFT% = sang_net_if.ndi,		SangomaAdapter\SPROTOCOL_IFACE
%DeviceDesc.ADSL% = sang_adsl_net_if.ndi, 	SangomaAdapter\ADSL_NET__IFACE

[sang_net_if.ndi]
AddReg		    = sang_net_if.ndi.reg, sang_net_if.params.reg
Characteristics	= 0x81 ; NCF_VIRTUAL | NCF_HAS_UI
CopyFiles	    = system32.CopyFiles, system32_drivers.CopyFiles, inf.CopyFiles
BusType			= 15	; PNPBus

[sang_adsl_net_if.ndi]
AddReg		    = sang_adsl_net_if.ndi.reg, sang_net_if.params.reg
Characteristics	= 0x81 ; NCF_VIRTUAL | NCF_HAS_UI
CopyFiles	    = system32.CopyFiles, system32_drivers.CopyFiles, inf.CopyFiles

[sang_net_if.ndi.Services]
AddService = wanpipe,  2, sang_net_if.AddService, sang_net_if.EventLog

[sang_adsl_net_if.ndi.Services]
AddService = wanpipe,  2, sang_net_if.AddService, sang_net_if.EventLog

[sang_net_if.AddService]
DisplayName     = %DeviceDesc.AFT_interface%
ServiceType     = 1 ;%SERVICE_KERNEL_DRIVER%
StartType       = 3 ;%SERVICE_DEMAND_START%
ErrorControl    = 1 ;%SERVICE_ERROR_NORMAL%
ServiceBinary   = %12%\wanpipe.sys
LoadOrderGroup  = NDIS

[sang_net_if.EventLog]
Addreg = sang_net_if.AddEventLog.reg

[sang_net_if.AddEventLog.reg]
HKR,    ,   EventMessageFile,   0x00020000, "%%SystemRoot%%\System32\netevent.dll"
HKR,    ,   TypesSupported,     0x00010001, 7

[sang_net_if.ndi.reg]
; Interfaces
HKR,Ndi,           Service,   0,"wanpipe"
HKR,Ndi\Interfaces,UpperRange,0,"ndis5"
HKR,Ndi\Interfaces,LowerRange,0,"ethernet"
;HKR,,EnumPropPages32,,"wanpipecfg.dll,EnumPropPages"

HKR,Ndi\params\dynamic_interface,	ParamDesc,	,"Dynamic Interface"
HKR,Ndi\params\dynamic_interface,	default,	,1
HKR,Ndi\params\dynamic_interface,	type,		,enum
HKR,Ndi\params\dynamic_interface\enum,	1,		,"Yes"
HKR,Ndi\params\dynamic_interface\enum,	0,		,"No"

HKR,Ndi\params\OperationalMode,		ParamDesc,	,"Operational Mode"
HKR,Ndi\params\OperationalMode,		default,	,0
HKR,Ndi\params\OperationalMode,		type,		,enum
HKR,Ndi\params\OperationalMode\enum,	0,		,"ROUTED_IP"
HKR,Ndi\params\OperationalMode\enum,	1,		,"BRIDGED_ETHERNET"

; Network Address
;HKR,Ndi\params\NetworkAddress,		ParamDesc,  , "Network (MAC) Address"
;HKR,Ndi\params\NetworkAddress,		Default,    , ""
;HKR,Ndi\params\NetworkAddress,		type,       , "edit"
;HKR,NDI\params\NetworkAddress,		LimitText,  , "12"
;HKR,NDI\params\NetworkAddress,		UpperCase,  , "1"
;HKR,NDI\params\NetworkAddress,		optional,   , "1"

; Network Address - limited to 4 bytes, but it is enough for absolute majority of cases
HKR,Ndi\params\NetworkAddressHex,	ParamDesc,	, "Network Address (up-to 4 Hex Digits)"
HKR,Ndi\params\NetworkAddressHex,	default,	, 12345678
HKR,Ndi\params\NetworkAddressHex,	type,		, dword
HKR,Ndi\params\NetworkAddressHex,	base,		, 16
HKR,NDI\params\NetworkAddressHex,	optional,   , "1"

[sang_adsl_net_if.ndi.reg]
; Interfaces
HKR,Ndi,           Service,   0,"wanpipe"
HKR,Ndi\Interfaces,UpperRange,0,"ndis5"
HKR,Ndi\Interfaces,LowerRange,0,"ethernet"
;HKR,,EnumPropPages32,,"wanpipecfg.dll,EnumPropPages"

HKR,Ndi\params\dynamic_interface,	ParamDesc,	,"Dynamic Interface"
HKR,Ndi\params\dynamic_interface,	default,	,1
HKR,Ndi\params\dynamic_interface,	type,		,enum
HKR,Ndi\params\dynamic_interface\enum,	1,		,"Yes"
HKR,Ndi\params\dynamic_interface\enum,	0,		,"No"

HKR,Ndi\params\OperationalMode,		ParamDesc,	,"Operational Mode"
HKR,Ndi\params\OperationalMode,		default,	,1		;main difference from "sang_net_if.ndi.reg" !!
HKR,Ndi\params\OperationalMode,		type,		,enum
HKR,Ndi\params\OperationalMode\enum,	0,		,"ROUTED_IP"
HKR,Ndi\params\OperationalMode\enum,	1,		,"BRIDGED_ETHERNET"


[system32_drivers.CopyFiles]
wanpipe.sys

[inf.CopyFiles]
;netsango.inf

[system32.CopyFiles]
;wanpipecfg.dll

; extra parameters for WANPIPE
[sang_net_if.params.reg]
HKR, , LogErrors,			0, "1"  ; messages will be written to wanpipelog.txt

HKR,Ndi,HelpText,,"The Sangoma WANPIPE enables you communcate over a Wide Area Network."

;****************************************************************************
; Destination Directories
;****************************************************************************
[DestinationDirs]
DefaultDestDir		        = 12
system32.CopyFiles			= 11 ;system32
system32_drivers.CopyFiles  = 12 ;system32\drivers
inf.CopyFiles               = 17 ; LDID_INF

;****************************************************************************
; Localizable Strings
;****************************************************************************
[strings]
V_Sangoma = "Sangoma Technologies"
DeviceDesc.AFT	= "    Sangoma Network interface"
DeviceDesc.ADSL	= "    Sangoma ADSL Network interface"

DeviceDesc.AFT_interface = "Sangoma Network interface"
SourceDiskDesc = "Sangoma Installation floppy"
