OEMSETUP.INF Driver File Contents (ibmd1r9s.exe)

;***********************************************************************
; Ascend Communications, BR-ISDN - NetWarp - WindowsNT Setup File.
;***********************************************************************
[Identification]
	OptionType = NetAdapter

[PlatformsSupported]
	ISA
	EISA
	Pcmcia

[Options]
;MFG	NetWarp			
;MFG	NetWarpB	
;MFG	PipeLine10
	Clipper

[FileConstants]
	InfName                 = "OEMNADSB.INF"
	UtilityInf              = "UTILITY.INF"
	ParamInf                = "NCPARAM.INF"
	subroutineinf           = "SUBROUTN.INF"
	SoftwareType            = "driver"
	Exit_Code               = 0
	NetEventDLL             = "%SystemRoot%\System32\netevent.dll"
	IoLogMsgDLL             = "%SystemRoot%\System32\IoLogMsg.dll"
	ProductMajorVersion     = "2"
	ProductMinorVersion     = "30"
	ProductVersion          = $(ProductMajorVersion)"."$(ProductMinorVersion)

	ProductSoftwareName     = $(CProdName)
	ProductHardwareName    	= $(CProdName)

	DeviceMap               = "HARDWARE\DEVICEMAP"
	TapiDevices             = "TAPI DEVICES"
	TapiMediaType           = "ISDN"

	ProductKeyName = $(!NTN_SoftwareBase)"\"$(Manufacturer)"\"+
	                  $(ProductSoftwareName)"\CurrentVersion"
							  
	ParamKeyName   = $(!NTN_ServiceBase)"\"$(ProductHardwareName)"\Parameters"

	NumberOfLines			= "1"
	NumberOfChannels		= "2"

	RevisionNum1			= "5"
	RevisionNum2			= "6"

;   FIXME - Set to zero before release
DebugFlags              = 0

	SwitchTypeList			= {"Automatic","AT&T 5ESS Custom","National ISDN-1(NI-1)","NorTel DMS100","NTT INS64","ETSI NET3"}
	SwitchNumberList		= {1,2,4,8,16,128}

	DialogDllName     = "acntwiz.DLL"
	IrqList           = ^(ISDNmdmIrqs, 1)                     
	IrqValues	      = ^(ISDNmdmIrqs, 2)
	MediaList		  = $(SwitchTypeList)
	MediaValues   	  = $(SwitchNumberList)
	IoBaseList        = ^(ISDNmdmIoBase, 1)
	IoBaseValues      = ^(ISDNmdmIoBase, 2)
	COMBaseList       = ^(ISDNmdmCOMBase, 1)
	COMBaseValues     = ^(ISDNmdmCOMBase, 2)
	COMPortList	      = ^(ISDNmdmCOMBase, 3)
	MemBaseList       = ^(ISDNmdmCISMemBase, 1)
	MemBaseValues     = ^(ISDNmdmCISMemBase, 2)

[ISDNmdmIrqs]
	IRQ0 = " 3", 3
	IRQ1 = " 4", 4
	IRQ2 = " 5", 5
	IRQ3 = " 7", 7
	IRQ4 = " 9", 9
	IRQ5 = "10", 10
	IRQ6 = "11", 11
; MFG	IRQ7 = "12", 12
; MFG	IRQ8 = "14", 14
	IRQ9 = "15", 15

[ISDNmdmIoBase]
	Base0	= "0x288",	648
; MFG	Base1	= "0x388",	904
; MFG	Base2	= "0x100",	256
; MFG	Base3	= "0x120",	288
; MFG	Base4	= "0x140",	320
; MFG	Base5	= "0x180",	384
; MFG	Base6	= "0x1A0",	416
; MFG	Base7	= "0x1C0",	448
; MFG	Base8	= "0x1E0",	480
; MFG	Base9	= "0x200",	512
; MFG	Base10	= "0x220",	544
; MFG	Base11	= "0x240",	576
; MFG	Base12	= "0x260",	608
	Base13	= "0x280",	640
; MFG	Base14	= "0x2A0",	672
; MFG	Base15	= "0x2C0",	704
; MFG	Base16	= "0x2E0",	736
; MFG	Base17	= "0x300",	768
	Base18	= "0x320",	800
	Base19	= "0x340",	832
; MFG	Base20	= "0x360",	864
; MFG	Base21	= "0x380",	896

[ISDNmdmCOMBase]
	COMBase0 = "0x3F8", 1016,	"COM1"
	COMBase1 = "0x2F8", 760,	"COM2"
	COMBase2 = "0x3E8", 1000,	"COM3"
	COMBase3 = "0x2E8", 744,	"COM4"

[ISDNmdmCISMemBase]
; MFG	MemBase0	= "0xC8000", 819200
; MFG	MemBase1	= "0xC9000", 823296
; MFG	MemBase2	= "0xCA000", 827392
; MFG	MemBase3	= "0xCB000", 831488
; MFG	MemBase4	= "0xCC000", 835584
; MFG	MemBase5	= "0xCD000", 839680
; MFG	MemBase6	= "0xCE000", 843776
; MFG	MemBase7	= "0xCF000", 847872
	MemBase8	= "0xD0000", 851968
; MFG	MemBase9	= "0xD1000", 856064
; MFG	MemBase10	= "0xD2000", 860160
; MFG	MemBase11	= "0xD3000", 864256
	MemBase12	= "0xD4000", 868352
; MFG	MemBase13	= "0xD5000", 872448
; MFG	MemBase14	= "0xD6000", 876544
; MFG	MemBase15	= "0xD7000", 880640
	MemBase16	= "0xD8000", 884736
; MFG	MemBase17	= "0xD9000", 888832
; MFG	MemBase18	= "0xDA000", 892928
; MFG	MemBase19	= "0xDB000", 897024
; MFG	MemBase20	= "0xDC000", 901120
; MFG	MemBase21	= "0xDD000", 905216
; MFG	MemBase22	= "0xDE000", 909312
; MFG	MemBase23	= "0xDF000", 913408
; MFG	MemBase24	= "0xE0000", 917504
; MFG	MemBase25	= "0xE1000", 921600
; MFG	MemBase26	= "0xE2000", 925696
; MFG	MemBase27	= "0xE3000", 929792
; MFG	MemBase28	= "0xE4000", 933888
; MFG	MemBase29	= "0xE5000", 937984
; MFG	MemBase30	= "0xE6000", 942080
; MFG	MemBase31	= "0xE7000", 946176
; MFG	MemBase32	= "0xE8000", 950272
; MFG	MemBase33	= "0xE9000", 954368
; MFG	MemBase34	= "0xEA000", 958464
; MFG	MemBase35	= "0xEB000", 962560
; MFG	MemBase36	= "0xEC000", 966656
; MFG	MemBase37	= "0xED000", 970752
; MFG	MemBase38	= "0xEE000", 974848
; MFG	MemBase39	= "0xEF000", 978944

[GeneralConstants]
	from                    = ""
	to                      = ""
	ExitCodeOk              = 0
	ExitCodeCancel          = 1
	ExitCodeFatal           = 2
	KeyNull                 = ""
	MAXIMUM_ALLOWED         = 33554432
	RegistryErrorIndex      = NO_ERROR
	KeyProduct              = ""
	KeyParameters           = ""
	TRUE                    = 1
	FALSE                   = 0
	NoTitle                 = 0
	ExitState               = "Active"
	OldVersionExisted       = $(FALSE)
	DriverPath              = $(!STF_NTPATH)\drivers

[Date]
    Now                     = {} ? $(!LIBHANDLE) GetSystemDate

[Identify]
    Read-Syms Identification
    Set Status      = STATUS_SUCCESSFUL
    Set Identifier  = $(OptionType)
    Set Media       = #("Source Media Descriptions", 1, 1)
    Return $(Status) $(Identifier) $(Media)

[ReturnOptions]
    Set Status          = STATUS_FAILED
    Set OptionList      = {}
    Set OptionTextList  = {}
    Set LanguageList    = ^(LanguagesSupported, 1)

    IfContains(i) $($0) in $(LanguageList)
        IfStr(i) $($1) == ""
            GoTo SetOptions
        EndIf
        Set PlatformList = ^(PlatformsSupported, 1)
        IfContains(i) $($1) in $(PlatformList)
            GoTo SetOptions
        Else
            Set Status = STATUS_NOTSUPPORTED
            GoTo ExitReturnOptions
        EndIf
    Else
        Set Status = STATUS_NOLANGUAGE
        GoTo ExitReturnOptions
    EndIf

SetOptions = +
    Set OptionList     = ^(Options, 1)
    Set OptionTextList = ^(OptionsText$($0), 1)
    Set Status         = STATUS_SUCCESSFUL

ExitReturnOptions = +
    Return $(Status) $(OptionList) $(OptionTextList)

;***********************************************************************
[InstallOption]
    Set Status   = STATUS_FAILED
    Set Option   = $($1)
    Set SrcDir   = $($2)
    Set RasDir   = $($2)
    Set AddCopy  = $($3)
    Set DoCopy   = $($4)
    Set DoConfig = $($5)
    Set LanguageList = ^(LanguagesSupported, 1)

    IfContains(i) $($0) NOT-IN $(LanguageList)
        Return STATUS_NOLANGUAGE
    EndIf
    ;
    ; FIXME - make sure this flag is disabled before shipping
    ;
    Set OldDebugControl = $(!DebugOutputControl)
    Set !DebugOutputControl = 1

    Set-Subst LF = "\n"

    Read-Syms GeneralConstants
    Read-Syms FileConstants$(Option)
    Read-Syms FileConstants
    Read-Syms DialogConstants$(!STF_LANGUAGE)

    IfStr(i) $(!NTN_Origination) == "NCPA"
        Set Continue = $(OK)
    EndIf

    Read-Syms FileConstants$(!STF_LANGUAGE)
    Detect Date
    Set-Title  $(FunctionTitle)

    Set to   = Begin
    Set from = Begin
    Set CommonStatus = STATUS_SUCCESSFUL

    EndWait

;***********************************************************************
Begin = +
    Set ActivateDetection = FALSE
    IfStr(i) $(!NTN_InstallMode) == deinstall
        Set StartLabel = RemoveAdapter
    Else-IfStr(i) $(!NTN_InstallMode) == Update
        Set StartLabel = UpgradeSoftware
    Else-IfStr(i) $(!NTN_InstallMode) == bind
        Set StartLabel = BindingAdapter
    Else-IfStr(i) $(!NTN_InstallMode) == configure
        Set StartLabel = ConfigureAdapter
        Set ActivateDetection = TRUE
        Set CommonStatus = STATUS_REBOOT
        IfStr(i) $(ProductKeyName) == $(!NTN_RegBase)
            Debug-Output $(InfName)": Cannot configure the NetWarp driver software."
            Shell $(UtilityInf),RegistryErrorString,CANNOT_CONFIGURE_SOFTWARE
            IfInt $($ShellCode) != $(!SHELL_CODE_OK)
                Debug-Output $(InfName)": ShellCode error: cannot get an error string."
                GoTo ShellCodeError
            EndIf
            Set Error = $($R0)
            Set from = end
            Set to = end
            GoTo NonFatalInfo
        EndIf
    Else
        Set StartLabel = InstallAdapter
        Set ActivateDetection = TRUE
        Set OEM_ABANDON_OPTIONS = {}
        Set OEM_ABANDON_SOFTWARE = FALSE
        Set OEM_ABANDON_ON = TRUE
    EndIf

    Debug-Output $(InfName)": =================================================="
    Debug-Output $(InfName)": STF_CWDIR is: "$(!STF_CWDIR)
    Debug-Output $(InfName)": STF_LANGUAGE is: "$(!STF_LANGUAGE)
    Debug-Output $(InfName)": Option is: "$(Option)
    Debug-Output $(InfName)": !STF_NCDETECT  is: "$(!STF_NCDETECT)
    Debug-Output $(InfName)": !STF_NCOPTION  is: "$(!STF_NCOPTION)
    Debug-Output $(InfName)": !STF_NCDETCARD is: "$(!STF_NCDETCARD)
    Debug-Output $(InfName)": !STF_NCDETINFO is: "$(!STF_NCDETINFO)
    Debug-Output $(InfName)": STF_CONTEXTINFNAME is: "$(STF_CONTEXTINFNAME)
    Debug-Output $(InfName)": =================================================="

    Set DetectedCard = FALSE

    IfStr(i) $(ActivateDetection) != TRUE
        GoTo $(StartLabel)
    EndIf

	Set Transceiver = 0
	Set CardType = 0

	Set TypeList = {{IRQ, IRQList, IRQValue},+
			{PCMCIA, PCMCIAList, PCMCIA},+
			{IOADDR, IOADDR_Addr_List, IOBaseAddrValue}}

    Debug-Output $(InfName)": Calling Param_SetDefaults"
     Shell $(ParamInf) Param_SetDefaults {}

    Shell $(ParamInf) HexListFromDecList $(IO_Addr_List)
    Set IO_Hex_List = $($R0)

	Set LineType		= 2  ; JWW12
	Set	InterruptNumber = "9"
    Set IOBaseAddress 	= 648
	Set LineSwitchType  = 6	; JWW16

	IfInt $(multifunction) == $(TRUE)
    	Set IOBaseAddress_1	= 640
    	Set MemBaseAddress	= 884736
    	Set IOBaseAddress	= 760
	endif

    IfStr(i) $(!STF_NCDETECT) == YES
        IfStr(i) $(!STF_NCOPTION) == $(Option)
           Set DetectedCard = TRUE
           Debug-Output $(InfName)": Setting DetectedCard to TRUE"
        EndIf
    EndIf

    Shell "" DebugConfiguration "After parameter querying"
    Set from = FatalError
    Set to = FatalError
    GoTo $(StartLabel)

;***********************************************************************
;
;***********************************************************************
InstallAdapter = +

;    Read-Syms InvokeRasDlg$(!STF_LANGUAGE)
;    Shell "subroutn.inf" SetupMessage, $(!STF_LANGUAGE),  +
;           "STATUS", $(InvokeRasInstallMsg)

    OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
    IfStr $(KeyProduct) != $(KeyNull)
        CloseRegKey $(KeyProduct)
        IfStr(i) !(NTN_RegBase) == $(ProductKeyName)
           Shell $(UtilityInf), VerExistedDlg, $(ProductSoftwareTitle),+
               $(ProductVersion)
           IfInt $($ShellCode) != $(!SHELL_CODE_OK)
               Debug-Output $(InfName)": ShellCode error: cannot get an error string."
               GoTo ShellCodeError
           EndIf
           GoTo end
        Else

           set NetworkCardKeyName = $(!NTN_SoftwareBase)"\Microsoft\Windows NT\CurrentVersion\NetworkCards"
           OpenRegKey $(!REG_H_LOCAL) "" $(NetworkCardKeyName) $(MAXIMUM_ALLOWED) IE_KeyNetcards
           ifstr(i) $(IE_KeyNetcards) != ""
               EnumRegKey $(IE_KeyNetcards) IE_KeyNameList
               ForListDo $(IE_KeyNameList)
                   OpenRegKey $(IE_KeyNetcards) "" *($($),1) +
                         $(MAXIMUM_ALLOWED) NetworkCardKey
                   Ifstr(i) $(NetworkCardKey) != $(KeyNull)
                       GetRegValue $(NetworkCardKey),"Manufacturer", ManufacturerInfo
                       set ManufacturerName = *($(ManufacturerInfo), 4)
                       Debug-Output "   Manufacturer = "$(ManufacturerName)
                       Ifstr $(ManufacturerName) != $(Manufacturer)
                           goto nextnetcard2
                       endif
                       GetRegValue $(NetworkCardKey),"ProductName", ProductNameInfo
                       set ProductName = *($(ProductNameInfo), 4)
                       Debug-Output "   ProductName = "$(ProductName)
                       Ifstr(i) $(ProductName) != $(CProdName)
                           goto nextnetcard2
                       endif
                       OpenRegKey $(NetworkCardKey) "" "NetRules" +
                           $(MAXIMUM_ALLOWED) NetRuleKey
                       Ifstr $(NetRuleKey) != $(KeyNull)
                          GetRegValue $(NetRuleKey),"InfOption", InfOptionInfo
                          set InfOption = *($(InfOptionInfo), 4)
                          Debug-Output "InfOption = "$(InfOption)
                       endif
                       Ifstr(i) $(InfOption) == $(Option)
                           set CreateIcons = $(FALSE)
                           Debug-Output "CreateIcons FALSE"
                       endif
                       CloseRegKey $(NetRules)
                       CloseRegKey $(NetworkCardKey)
                   endif
nextnetcard2 = +
               EndForListDo
               CloseRegKey $(IE_KeyNetcards)
           endif


           Shell $(UtilityInf), CardExistedDlg
           IfInt $($ShellCode) != $(!SHELL_CODE_OK)
               Debug-Output $(InfName)": ShellCode error: cannot get an error string."
               GoTo ShellCodeError
           EndIf
           IfStr(i) $($R1) != "OK"
               Set CommonStatus = STATUS_USERCANCEL
               GoTo end
           EndIf
           Set OldVersionExisted = $(TRUE)
        EndIf
    EndIf

    Set CurrParamSettings = {}
	;*******foo
	IfInt $(useCustomDll) == $(TRUE)

    IfInt $(OldVersionExisted) == $(FALSE)
        IfStr(i) $(!NTN_InstallMode) == "install"
           IfStr(i) $(DoCopy) == "YES"
              Shell $(UtilityInf), DoAskSource, $(!STF_CWDDIR), $(SrcDir) YES
              IfInt $($ShellCode) != $(!SHELL_CODE_OK)
                  GoTo ShellCodeError
              Else-IfStr(i) $($R0) == STATUS_FAILED
                  Shell $(UtilityInf) RegistryErrorString "ASK_SOURCE_FAIL"
                  IfInt $($ShellCode) != $(!SHELL_CODE_OK)
                      GoTo ShellCodeError
                  EndIf
                  Set Error = $($R0)
                  GoTo FatalError
              Else-IfStr(i) $($R0) == STATUS_USERCANCEL
                  GoTo SuccessfulOption
              EndIf
              Set SrcDir = $($R1)
           EndIf

           Install "Install-Dll"
           IfStr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
              Shell $(UtilityInf) RegistryErrorString "UNABLE_COPY_FILE"
              IfInt $($ShellCode) != $(!SHELL_CODE_OK)
                  GoTo ShellCodeError
              EndIf
              Set Error = $($R0)
              GoTo FatalError
           EndIf
        EndIf
    EndIf

    EndIf
	;*******bar

    IfStr(i) $(DetectedCard) != TRUE
        GoTo AdapterSetup
    EndIf

    StartWait
        Shell $(ParamInf) Param_QueryCard $(!STF_NCDETCARD)
    EndWait

    IfStr(i) $($R0) != STATUS_SUCCESSFUL
        GoTo AdapterSetup
    EndIf

    Set DetectedParams = $($R1)
    Debug-Output $(InfName)": Calling Param_SetDefaults to merge detected params"
    Shell $(ParamInf) Param_SetDefaults $(DetectedParams)
    GoTo AdapterSetup

;***********************************************************************
ConfigureAdapter = +
    IfStr $(KeyProduct) == $(KeyNull)
        OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_RegBase) $(MAXIMUM_ALLOWED) KeyProduct
        IfStr $(KeyProduct) == $(KeyNull)
            Set RegistryErrorIndex = CANNOT_FIND_COMPONENT_SERVICE
            Debug-Output $(InfName)": Cannot find component product key"
            GoTo FatalRegistry
        EndIf
    EndIf

    Debug-Output $(InfName)": Shelling to FindService"
    Shell $(UtilityInf) FindService, $(KeyProduct)
    IfInt $($ShellCode) != $(!SHELL_CODE_OK)
        Debug-Output $(InfName)": FindService shell failure"
        GoTo ShellCodeError
    EndIf
    IfStr(i) $($R0) != NO_ERROR
        Debug-Output $(InfName)": FindService Shell error: "$($R0)
        GoTo FatalRegistry
    EndIf

    Set KeyParameters = $($R2)
    CloseRegKey $($R1)
    IfStr $(KeyParameters) == $(KeyNull)
        Set RegistryErrorIndex = CANNOT_FIND_COMPONENT_SERVICE
        Debug-Output $(InfName)": Cannot find component service"
        GoTo FatalRegistry
    EndIf

    Set OldVersionExisted = $(TRUE)
    Set ValueName = ""
    Set ValueData = ""
    Set ValueStr  = ""
    Set ValueList = {}
    EnumRegValue $(KeyParameters) ValueList

    ForListDo $(ValueList)
        Set ValueItem = $($)
        Set ValueName = *($(ValueItem),1)
        Set ValueData = *($(ValueItem),4)

		Debug-Output $(InfName)": "$(ValueName)"="$(ValueData)
        IfStr(i) $(ValueName) == "AddressList"
            set TapiAddressList = $(ValueData)
        Else-IfStr(i) $(ValueName) == "BusNumber"
            set BusNumber = $(ValueData)
        Else-IfStr(i) $(ValueName) == "BusType"
            set BusType = $(ValueData)
        Else-IfStr(i) $(ValueName) == "DeviceCaps"
            set DeviceCaps = $(ValueData)
        Else-IfStr(i) $(ValueName) == "IoBaseAddress"
            Set IOBaseAddress = $(ValueData)
        Else-IfStr(i) $(ValueName) == "IoBaseAddress_1"
            Set IOBaseAddress_1 = $(ValueData)
        Else-IfStr(i) $(ValueName) == "InterruptNumber"
            Set InterruptNumber = $(ValueData)
        Else-IfStr(i) $(ValueName) == "Line0.SwitchType"
            set LineSwitchType = $(ValueData)
        Else-IfStr(i) $(ValueName) == "Line0.Properties"
            set LineProperties = $(ValueData)
        Else-IfStr(i) $(ValueName) == "Line0.LineCaps"
            set LineCaps = $(ValueData)
        Else-IfStr(i) $(ValueName) == "Line0.Channel0.Phone"
            set DN0 = $(ValueData)
        Else-IfStr(i) $(ValueName) == "Line0.Channel1.Phone"
            set DN1 = $(ValueData)
        Else-IfStr(i) $(ValueName) == "Line0.Channel0.SPID"
            set Spid0 = $(ValueData)
        Else-IfStr(i) $(ValueName) == "Line0.Channel1.SPID"
            set Spid1 = $(ValueData)
        Else-IfStr(i) $(ValueName) == "Line0.Channel0.Properties"
            set ChannelProps0 = $(ValueData)
        Else-IfStr(i) $(ValueName) == "Line0.Channel1.Properties"
            set ChannelProps1 = $(ValueData)
        Else-IfStr(i) $(ValueName) == "Line0.Channel0.ChannelCaps"
            set ChannelCaps0 = $(ValueData)
        Else-IfStr(i) $(ValueName) == "Line0.Channel1.ChannelCaps"
            set ChannelCaps1 = $(ValueData)
        Else-IfStr(i) $(ValueName) == "Line0.LinkType"
            set PointType = $(ValueData)
        Else-IfStr(i) $(ValueName) == "Line0.Interface"
            set LineType = $(ValueData)
        Else-IfStr(i) $(ValueName) == "PCCARDAttributeMemoryAddress"
            set MemBaseAddress = $(ValueData)
        Else-IfStr(i) $(ValueName) == "DebugFlags"
            set DebugFlags = $(ValueData)
        EndIf

    EndForListDo
    Shell $(ParamInf) Param_SaveValues
    Set CurrParamSettings = $($R0)

;***********************************************************************
AdapterSetup = +
    Shell "" DebugConfiguration "before displaying dialog"
    Set from = AdapterOptions
;	Set InterruptNumber = *($(IRQ_List), ~($(IRQ_List)),$(InterruptNumber)))
    Set IO_Hex_Value = *($(IO_Hex_List), ~($(IO_Addr_List),$(IOBaseAddress)))
	Set SwitchValue = *($(SwitchTypeList), ~($(SwitchNumberList),$(LineSwitchType)))

	IfInt $(multifunction) == $(TRUE)
    	Set IO_Hex_Value = *($(IO_Hex_List), ~($(IO_Addr_List),$(IOBaseAddress_1)))
    	Set MemAddress = *($(MemBaseList), ~($(MemBaseValues),$(MemBaseAddress)))
    	Set ComPortStr = *($(COMBaseList), ~($(COMBaseValues),$(IOBaseAddress)))
	endif

    Shell $(ParamInf) Param_ParameterConfidence
    IfStr(i) $($R0) != STATUS_SUCCESSFUL
        Debug-Output $(InfName)": parameter confidence too low to bypass configuration"
        GoTo AdapterOptions
    EndIf
    IfStr(i) $(DetectedCard) == TRUE
        IfStr(i) $(!STF_INSTALL_MODE) != CUSTOM
			set BusType = *($(!STF_NCDETINFO),5)
			set BusNumber = *($(!STF_NCDETINFO),6)
            GoTo AdapterVerify
        EndIf
    EndIf

 
AdapterOptions = +
    ifstr(i) $(!STF_GUI_UNATTENDED) == "YES"
        ifstr(i) $(!AutoNetInterfaceType) != ""
            set BusType = $(!AutoNetInterfaceType)
            ifint $(BusType) == 8
                set PCMCIA = 1
            endif
        else
            set BusType = 1    
        endif
        ifstr(i) $(!AutoNetBusNumber) != ""
            set BusNumber = $(!AutoNetBusNumber)
        else
            set BusNumber = 0
        endif
        goto adapterverify
    endif

	IfInt $(useCustomDll) == $(TRUE)
		LoadLibrary "Disk 1" $(DialogDllName) Dllhandle
    	Read-Syms FileDependentDlg6$(!STF_LANGUAGE)

	   	LibraryProcedure BungOut $(Dllhandle) exportedFunc + 
			$(Caption) +
			$(page1Text1) +
			$(page1Text2) +
			$(page2Text1) +
			$(page2Text2) +
			$(Combo4List) +
			$(page3Text1) +
			$(page3Text2) +
			$(page3Text3) +
			$(page3Text4) +
			$(page3Text5) +
			$(page3Text6) +
			$(page4Text1) +
			$(page4Text2) +
			$(page4Text3) +
			$(page4Text4) +
			$(page4Text5) +
			$(Combo2List) +
			$(Combo3List) +
			$(Combo7List) +
			$(Combo1List) +
			$(page5Text1) +
			$(page5Text2) + 
			$(Combo4Out) +
			$(Combo2Out) +
			$(Combo3Out) +
			$(Combo7Out) +
			$(Combo1Out) +
			$(page3Edit1) +
			$(page3Edit2) +
			$(page3Edit3) +
			$(page3Edit4) +
			$(page2pt5Text1) +
			$(page2pt5Text2) +
			$(page2pt5Combo1) +
			$(LineType) 

      	Debug-Output $(page3Edit1)
      	Debug-Output $(page3Edit2)
      	Debug-Output $(page3Edit3)
      	Debug-Output $(page3Edit4)

	Split-String *($(BungOut),1) "," NetworkAddressList
	Debug-Output $(NetworkAddressList)

	Set DLGEVENT	= *($(NetworkAddressList),1)
	Set Combo4Out	= *($(NetworkAddressList),3)
	Set Combo2Out	= *($(NetworkAddressList),5)
	Set Combo3Out	= *($(NetworkAddressList),7)
	Set Combo7Out	= *($(NetworkAddressList),9)
	Set Combo1Out	= *($(NetworkAddressList),11)    
	Set DN0			= *($(NetworkAddressList),13)
	Set Spid0		= *($(NetworkAddressList),15)
	Set DN1			= *($(NetworkAddressList),17)
	Set Spid1		= *($(NetworkAddressList),19)    
	Set LineType		= *($(NetworkAddressList),21)    

	ifstr $(Spid0) == "NULL"
		Set Spid0 = ""
	endif

	ifstr $(Spid1) == "NULL"
		Set Spid1 = ""
	endif

	ifstr $(DN0) == "NULL"
		Set DN0 = ""
	endif

	ifstr $(DN1) == "NULL"
		Set DN1 = ""
	endif

       	Debug-Output $(Combo1Out)"/"$(Combo2Out)"/"$(Combo3Out)"/"$(Combo4Out)"/"$(Combo7Out)

;    	UI Start "HardwareInput" $(Dllhandle)
    	IfStr(i) $(DLGEVENT) == "CONTINUE"
        	Set InterruptNumber = $(Combo1Out)
        	Set IO_Hex_Value = $(Combo2Out)
        	Set IOBaseAddress_1 = *($(IO_Addr_List), ~($(IO_Hex_List),$(IO_Hex_Value)))
;        	Set IOBaseAddress_1 = $(Combo2Out)
		Set LineSwitchType = *($(SwitchNumberList), ~($(SwitchTypeList),$(Combo4Out)))
		Set MemBaseAddress = *($(MemBaseValues), ~($(MemBaseList),$(Combo3Out)))
    	Set IOBaseAddress = *($(COMBaseValues), ~($(COMBaseList),$(Combo7Out)))
    	Else-IfStr(i) $(DLGEVENT) == "BACK"
        	Set CommonStatus = STATUS_USERCANCEL
        	Debug-Output $(InfName)": Action: exit. Bye."
        	ui pop 1
			FreeLibrary $(Dllhandle)
        	GoTo end
    	Else
        	Debug-Output $(InfName)": Action: unknown. Bye."
        	ui pop 1
			FreeLibrary $(Dllhandle)
        	GoTo end
    	EndIf

		ui pop 1
		FreeLibrary $(Dllhandle)

	else

    	Read-Syms FileDependentDlg4$(!STF_LANGUAGE)
    	UI Start "HardwareInput"
    	IfStr(i) $(DLGEVENT) == "CONTINUE"
        	Set InterruptNumber = $(Combo1Out)
        	Set IO_Hex_Value = $(Combo2Out)
        	Set IOBaseAddress = *($(IO_Addr_List), ~($(IO_Hex_List),$(IO_Hex_Value)))
		Set LineSwitchType = *($(SwitchNumberList), ~($(SwitchTypeList),$(Combo3Out)))
       		ui pop 1
    	Else-IfStr(i) $(DLGEVENT) == "BACK"
        	Set CommonStatus = STATUS_USERCANCEL
        	Debug-Output $(InfName)": Action: exit. Bye."
        	ui pop 1
        	GoTo end
    	Else
        	Debug-Output $(InfName)": Action: unknown. Bye."
        	ui pop 1
        	GoTo end
    	EndIf

		IfInt $(LineSwitchType) >= 128	 ; JWW(was 16)
			goto start_dn_dialog_box
		endif

		Read-Syms FileDependentDlg2$(!STF_LANGUAGE)
		ifstr $(EditTextIn) == " "
			set EditTextIn = ""
		endif

		UI Start "AddressInput"
		IfStr(i) $(DLGEVENT) == "CONTINUE"

			Split-String *($(EditTextOut),1) " " NetworkAddressList
			set Spid0 = ""
			set Spid1 = ""
			ForListDo $(NetworkAddressList)
				ifstr $($) != " "
					ifstr $(Spid0) == ""
						set Spid0 = $($)
					else-ifstr $(Spid1) == ""
						set Spid1 = $($)
						goto end_of_spid_loop
					endif
				endif
			EndForListDo

end_of_spid_loop =+

			set PointType = *($(RadioOut),1)

				ui pop 1
			Else-IfStr(i) $(DLGEVENT) == "BACK"
				Set CommonStatus = STATUS_USERCANCEL
				Debug-Output $(InfName)": Action: exit. Bye."
				ui pop 1
				GoTo end
			Else
				Debug-Output $(InfName)": Action: unknown. Bye."
				ui pop 1
				GoTo end
			EndIf

start_dn_dialog_box =+
			Read-Syms FileDependentDlg3$(!STF_LANGUAGE)
			ifstr $(EditTextIn) == " "
				set EditTextIn = ""
			endif

			UI Start "TelephoneInput"
			IfStr(i) $(DLGEVENT) == "CONTINUE"
				Split-String *($(EditTextOut),1) " " DNList

				set DN0 = ""
				set DN1 = ""
				ForListDo $(DNList)
					ifstr $($) != " "
						ifstr $(DN0) == ""
							set DN0 = $($)
						else-ifstr $(DN1) == ""
							set DN1 = $($)
							goto end_of_dn_loop
						endif
					endif
				EndForListDo

end_of_dn_loop =+

		;		set DN0 = *($(DNList),1)
		;		set DN1 = *($(DNList),3)
				set LineType = *($(RadioOut),1)
				ui pop 1
			Else-IfStr(i) $(DLGEVENT) == "BACK"
				Set CommonStatus = STATUS_USERCANCEL
				Debug-Output $(InfName)": Action: exit. Bye."
				ui pop 1
				GoTo end
			Else
				Debug-Output $(InfName)": Action: unknown. Bye."
				ui pop 1
				GoTo end
	    EndIf

	endif

    IfStr(i) $(!STF_NCDETINFO) == {}
        	Set BusType = 1 
        	Set BusNumber = 0
	Else
        Set BusType = *($(!STF_NCDETINFO),5)
        Set BusNumber = *($(!STF_NCDETINFO),6)
    EndIf

;***********************************************************************
AdapterVerify = +
    Shell "" DebugConfiguration "after running dialog"
    IfStr(i) $(DetectedCard) != TRUE
        Shell $(ParamInf) Param_SaveValues
        Set NewParamSettings = $($R0)
        IfStr(i) $(CurrParamSettings) == {}
            Set DiffParamSettings = $(NewParamSettings)
        Else
            Shell $(ParamInf) Param_DiffValues $(CurrParamSettings)
            Set DiffParamSettings = $($R0)
        EndIf
        Debug-Output $(InfName)": Calling Param_VerifyResources"
        Shell $(ParamInf) Param_VerifyResources $(DiffParamSettings)
        IfStr(i) $($R0) == STATUS_SUCCESSFUL
            Debug-Output $(InfName)": Param_VerifyResources succeeded"
            GoTo SkipOptions
        EndIf
    Else
        Set CardVerifyIndex = $(!STF_NCDETCARD)
        Debug-Output $(InfName)": Calling Param_VerifyCard"
        Shell $(ParamInf) Param_VerifyCard $(!STF_NCDETCARD)
        IfStr(i) $($R0) == STATUS_SUCCESSFUL
            Debug-Output $(InfName)": Param_VerifyCard succeeded"
            GoTo SkipOptions
        EndIf
    EndIf

    Set from = AdapterOptions
    Set to = SkipOptions
    Shell $(UtilityInf),RegistryErrorString,VERIFY_WARNING
    IfInt $($ShellCode) != $(!SHELL_CODE_OK)
        Debug-Output $(InfName)": ShellCode error: cannot get an error string."
        GoTo ShellCodeError
    EndIf
    Set Error = $($R0)
    GoTo WarningMsg

;***********************************************************************
SkipOptions =+
    IfInt $(OldVersionExisted) == $(TRUE)
        IfStr(i) $(!NTN_InstallMode) == configure
            GoTo WriteParameters
        EndIf
    EndIf
    StartWait
    IfInt $(OldVersionExisted) == $(FALSE)
        IfStr(i) $(!NTN_InstallMode) == "install"
           IfStr(i) $(DoCopy) == "YES"
              Shell $(UtilityInf), DoAskSource, $(!STF_CWDDIR), $(SrcDir) YES
              IfInt $($ShellCode) != $(!SHELL_CODE_OK)
                  GoTo ShellCodeError
              Else-IfStr(i) $($R0) == STATUS_FAILED
                  Shell $(UtilityInf) RegistryErrorString "ASK_SOURCE_FAIL"
                  IfInt $($ShellCode) != $(!SHELL_CODE_OK)
                      GoTo ShellCodeError
                  EndIf
                  Set Error = $($R0)
                  GoTo FatalError
              Else-IfStr(i) $($R0) == STATUS_USERCANCEL
                  GoTo SuccessfulOption
              EndIf
              Set SrcDir = $($R1)
           EndIf

           Install "Install-Option"
           IfStr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
              Shell $(UtilityInf) RegistryErrorString "UNABLE_COPY_FILE"
              IfInt $($ShellCode) != $(!SHELL_CODE_OK)
                  GoTo ShellCodeError
              EndIf
              Set Error = $($R0)
              GoTo FatalError
           EndIf
        EndIf

        Shell $(UtilityInf), AddSoftwareComponent, $(Manufacturer), +
            $(ProductSoftwareName), +
            $(ProductSoftwareName), +
            $(ProductSoftwareTitle), $(STF_CONTEXTINFNAME), +
            $(ProductSoftware$(Option)ImagePath), "kernelautostart", +
			"NDIS", {}, "", $(NetEventDLL)
        Set OEM_ABANDON_SOFTWARE = TRUE
        IfInt $($ShellCode) != $(!SHELL_CODE_OK)
            Debug-Output $(InfName)": ShellCode error"
            GoTo ShellCodeError
        EndIf
        Set RegistryErrorIndex = $($R0)
        Set KeyProduct      = $($R1)
        Set SoftNetRulesKey = $($R2)
        CloseRegKey $($R3)
        CloseRegKey $($R4)
        CloseRegKey $($R5)

        IfStr(i) $(RegistryErrorIndex) != NO_ERROR
            EndWait
            Debug-Output $(InfName)": Registry error: add software components"
            CloseRegKey $(KeyProduct)
            CloseRegKey $(SoftNetRulesKey)
            GoTo FatalRegistry
        EndIf

        Set NewValueList = {{SoftwareType,$(NoTitle),$(!REG_VT_SZ),$(SoftwareType)},+
                           {MajorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMajorVersion)},+
                           {MinorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMinorVersion)},+
                           {Title,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareTitle)},+
                           {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareDescription)},+
                           {ServiceName,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareName)},+
                           {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
        Shell  $(UtilityInf), AddValueList, $(KeyProduct), $(NewValueList)
        IfInt $($ShellCode) != $(!SHELL_CODE_OK)
            Debug-Output $(InfName)": ShellCode error."
            GoTo ShellCodeError
        EndIf
        Set RegistryErrorIndex = $($R0)
        IfStr(i) $(RegistryErrorIndex) != NO_ERROR
            EndWait
            Debug-Output $(InfName)": Registry error: add value list."
            CloseRegKey $(KeyProduct)
            CloseRegKey $(SoftNetRulesKey)
            GoTo FatalRegistry
        EndIf

        Set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftware$(Option)Type)},+
                            {use,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftware$(Option)Use)}, +
                            {bindform,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftware$(Option)BindForm)}, +
                            {class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftware$(Option)Class)}, +
                            {bindable,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftware$(Option)Bindable)}, +
                            {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
        Shell  $(UtilityInf), AddValueList, $(SoftNetRulesKey), $(NewValueList)
        IfInt $($ShellCode) != $(!SHELL_CODE_OK)
            Debug-Output $(InfName)": ShellCode error."
            GoTo ShellCodeError
        EndIf
        Set RegistryErrorIndex = $($R0)
        CloseRegKey $(KeyProduct)
        CloseRegKey $(SoftNetRulesKey)
        IfStr(i) $(RegistryErrorIndex) != NO_ERROR
            EndWait
            Debug-Output $(InfName)": Resgitry error: add value list."
            GoTo FatalRegistry
        EndIf
    EndIf

    Shell $(UtilityInf), AddHardwareComponent, $(ProductHardwareName),$(STF_CONTEXTINFNAME),$(ProductKeyName)
    IfInt $($R4) != -1
        Set OEM_ABANDON_OPTIONS = >($(OEM_ABANDON_OPTIONS), $(!NTN_SoftwareBase)"\Microsoft\Windows NT\CurrentVersion\NetworkCards\"$($R4))
    EndIf
    IfInt $($ShellCode) != $(!SHELL_CODE_OK)
        Debug-Output $(InfName)": Cannot add hardware component"
        GoTo ShellCodeError
    EndIf
    Set RegistryErrorIndex = $($R0)
    IfStr(i) $(RegistryErrorIndex) != NO_ERROR
        EndWait
        Debug-Output $(InfName)": Registry error: add hardware component"
        CloseRegKey $($R1)
        CloseRegKey $($R2)
        CloseRegKey $($R3)
        GoTo FatalRegistry
    EndIf

    Set KeyParameters = $($R3)
    Set KeyAdapterRules = $($R2)
    Set AdapterNumber = $($R4)
    Set NewValueList = {{Manufacturer,$(NoTitle),$(!REG_VT_SZ),$(Manufacturer)},+
                       {Title,$(NoTitle),$(!REG_VT_SZ),"["$($R4)"] "$(ProductHardwareTitle)},+
                       {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductHardwareDescription)},+
                       {ProductName,$(NoTitle),$(!REG_VT_SZ),$(ProductHardwareName)},+
                       {ServiceName,$(NoTitle),$(!REG_VT_SZ),$($R5)},+
                       {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
    Shell  $(UtilityInf), AddValueList, $($R1), $(NewValueList)
    IfInt $($ShellCode) != $(!SHELL_CODE_OK)
        Debug-Output $(InfName)": ShellCode error"
        GoTo ShellCodeError
    EndIf
    CloseRegKey $($R1)

    Set TempProdName = """"$(ProductHardwareName)$(AdapterNumber)""""
    Set TempBindForm = $(TempProdName)$(NetRuleHardware$(Option)BindForm)
    Set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleHardware$(Option)Type)},+
                        {bindform,$(NoTitle),$(!REG_VT_SZ),$(TempBindForm)}, +
                        {class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleHardware$(Option)Class)}, +
                        {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
    Shell  $(UtilityInf), AddValueList, $(KeyAdapterRules), $(NewValueList)
    IfInt $($ShellCode) != $(!SHELL_CODE_OK)
        Debug-Output $(InfName)": ShellCode error."
        GoTo ShellCodeError
    EndIf
    Set RegistryErrorIndex = $($R0)
    IfStr(i) $(RegistryErrorIndex) != NO_ERROR
        EndWait
        Debug-Output $(InfName)": Resgitry error: add value list."
        CloseRegKey $(KeyParameters)
        CloseRegKey $(KeyAdapterRules)
        GoTo FatalRegistry
    EndIf
    CloseRegKey $(KeyAdapterRules)

    GoTo WriteParameters

;***********************************************************************
WriteParameters = +
	IfInt $(BusType) == 8
		set PCMCIA = 1
		set BusType = 1
	EndIf

	IfStr(i) $(AdapterNumber) != ""
    	Set TapiAddressList = {$(AdapterNumber)" 1 0"}
        Set TapiAddressList = >($(TapiAddressList),$(AdapterNumber)" 2 0")
	EndIf

    Set NewValueList = {+
           {AddressList,$(NoTitle),$(!REG_VT_MULTI_SZ),$(TapiAddressList)},+
           {BusNumber,$(NoTitle),$(!REG_VT_DWORD),$(BusNumber)},+
           {BusType,$(NoTitle),$(!REG_VT_DWORD),$(BusType)},+
           {DebugFlags,$(NoTitle),$(!REG_VT_DWORD),$(DebugFlags)},+
           {DeviceName,$(NoTitle),$(!REG_VT_SZ),$(ProductHardwareName)},+
           {InterruptNumber,$(NoTitle),$(!REG_VT_DWORD),$(InterruptNumber)},+
           {IoBaseAddress,$(NoTitle),$(!REG_VT_DWORD),$(IOBaseAddress)},+
		   {Line0.Channel0.Phone,$(NoTitle),$(!REG_VT_SZ),$(DN0)},+
		   {Line0.Channel1.Phone,$(NoTitle),$(!REG_VT_SZ),$(DN1)},+
		   {Line0.Channel0.SPID,$(NoTitle),$(!REG_VT_SZ),$(Spid0)},+
		   {Line0.Channel1.SPID,$(NoTitle),$(!REG_VT_SZ),$(Spid1)},+
           {Line0.LinkType,$(NoTitle),$(!REG_VT_DWORD),$(PointType)},+
           {Line0.NumChannels,$(NoTitle),$(!REG_VT_DWORD),$(NumberOfChannels)},+
           {Line0.Interface,$(NoTitle),$(!REG_VT_DWORD),$(LineType)},+
		   {Line0.SwitchType,$(NoTitle),$(!REG_VT_DWORD),$(LineSwitchType)},+
           {MediaType,$(NoTitle),$(!REG_VT_SZ),$(TapiMediaType)},+
		   {NumerOfLines,$(NoTitle),$(!REG_VT_SZ),$(NumberOfLines)},+
           }

    Shell  $(UtilityInf), AddValueList, $(KeyParameters), $(NewValueList)

	IfInt $(PCMCIA) == 1
    	Set NewValueList = {+
			{Pcmcia,$(NoTitle),$(!REG_VT_DWORD),1},+
        	{IoLength,$(NoTitle),$(!REG_VT_DWORD),8},+
			{Revision,$(NoTitle),$(!REG_VT_DWORD),$(RevisionNum$(LineType))}}
    	Shell  $(UtilityInf), AddValueList, $(KeyParameters), $(NewValueList)
	Else
		DeleteRegValue $(KeyParameters) "Pcmcia"
	Endif
	
	IfInt $(multifunction) == 1
    	Set NewValueList = {+
           {IoBaseAddress,$(NoTitle),$(!REG_VT_DWORD),$(IOBaseAddress)},+
           {IoBaseAddress_1,$(NoTitle),$(!REG_VT_DWORD),$(IOBaseAddress_1)},+
           {IoLength_1,$(NoTitle),$(!REG_VT_DWORD),8},+
           {AttributeMemorySize,$(NoTitle),$(!REG_VT_DWORD),4096},+
           {PCCARDAttributeMemoryAddress,$(NoTitle),$(!REG_VT_DWORD),$(MemBaseAddress)},+
           {PCCARDAttributeMemorySize,$(NoTitle),$(!REG_VT_DWORD),4096},+
           {PCCARDAttributeMemoryOffset,$(NoTitle),$(!REG_VT_DWORD),0},+
           {ModemFunction,$(NoTitle),$(!REG_VT_DWORD),1}}
    	Shell  $(UtilityInf), AddValueList, $(KeyParameters), $(NewValueList)
	Endif

	IfStr(i) $(!STF_GUI_UNATTENDED) == "YES"
    	Shell  $(UtilityInf), AddDefaultNetCardParameters, $(KeyParameters)
	Endif

    CloseRegKey $(KeyParameters)

;--------------------------------------------------------------------
; Write the parameters to the PCMCIA database section.
;--------------------------------------------------------------------
	IfInt $(PCMCIA) == 1
   		set PCMCIADatabaseKeyName = $(!NTN_ServiceBase)"\Pcmcia\DataBase"
   		Debug-Output $(InfName)": Opening PCMICA database key "$(PCMCIADatabaseKeyName)
   		OpenRegKey $(!REG_H_LOCAL) "" $(PCMCIADatabaseKeyName) $(MAXIMUM_ALLOWED) PCMCIADatabaseKey

   		Ifstr $(PCMCIADatabaseKey) == $(NULL)    
			Debug-Output $(InfName)": Pcmcia\DataBase not present"
   		else
			OpenRegKey $(!REG_H_LOCAL) "" $(PCMCIADatabaseKeyName)"\"$(WhateverTheNameIs) $(MAXIMUM_ALLOWED) PCMCIADatabaseProductName

			Ifstr $(PCMCIADatabaseProductName) != $(NULL)
				Debug-Output $(InfName)": Removing "$(WhateverTheNameIs)" Key..."
				CloseRegKey $(PCMCIADatabaseProductName)
				DeleteRegTree $(PCMCIADatabaseKey) $(WhateverTheNameIs)
			Endif

			Debug-Output $(InfName)": Creating "$(WhateverTheNameIs)" KEY"

			CreateRegKey $(PCMCIADatabaseKey) {$(WhateverTheNameIs), 0, 0} "" $(MAXIMUM_ALLOWED) "" PCMCIADatabaseProductName

			Debug-Output $(InfName)": Adding "$(WhateverTheNameIs)" Keys"

			SetRegValue $(PCMCIADatabaseProductName) {Driver, 0, $(!REG_VT_SZ),$(CProdName)}
			SetRegValue $(PCMCIADatabaseProductName) {DeviceType, 0, $(!REG_VT_SZ),"NET"}
			IfInt $(multifunction) == $(TRUE)
				SetRegValue $(PCMCIADatabaseProductName) {AttributeMemorySize, 0, $(!REG_VT_DWORD), 4096}
			Endif

 			CloseRegKey $(PCMCIADatabaseProductName)
			CloseRegKey $(PCMCIADatabaseKey)
   		Endif
	EndIf

    IfInt $($ShellCode) != $(!SHELL_CODE_OK)
        Debug-Output $(InfName)": ShellCode error."
        GoTo ShellCodeError
    EndIf
    Set RegistryErrorIndex = $($R0)
    IfStr(i) $(RegistryErrorIndex) != NO_ERROR
        Debug-Output $(InfName)": Registry error: Add value list"
        GoTo FatalRegistry
    EndIf
    ;
    ; Skip TAPI/RAS setup if already installed.
    ;
    IfStr(i) $(!NTN_InstallMode) == configure
        GoTo SuccessfulOption
    EndIf
    ;
    ; Create the HARDWARE\DEVICEMAP\TAPI DEVICES\NetWarp key
    ;
    OpenRegKey $(!REG_H_LOCAL) "" "HARDWARE\DEVICEMAP" $(MAXIMUM_ALLOWED) BaseKey
    shell "" HtCreateRegKey $(BaseKey) "TAPI DEVICES\"$(ProductSoftwareName)
    IfStr(i) $($R0) != NO_ERROR
        Debug-Output $(InfName)": Error creating registry key!"
        GoTo FatalRegistry
    EndIf
    Set TapiDeviceKey = $($R1)
    Set NewValueList = {+
                  {Address,$(NoTitle),$(!REG_VT_MULTI_SZ),$(TapiAddressList)},+
                  {"Media Type",$(NoTitle),$(!REG_VT_SZ),$(TapiMediaType)}}
    Shell  $(UtilityInf), AddValueList, $(TapiDeviceKey), $(NewValueList)
    IfInt $($ShellCode) != $(!SHELL_CODE_OK)
        Debug-Output $(InfName)": ShellCode error."
        GoTo ShellCodeError
    EndIf
    Set RegistryErrorIndex = $($R0)
    IfStr(i) $(RegistryErrorIndex) != NO_ERROR
        Debug-Output $(InfName)": Registry error: Add value list"
        GoTo FatalRegistry
    EndIf
    CloseRegKey $(TapiDeviceKey)
    CloseRegKey $(BaseKey)
    ;
    ; if RAS is not installed, then shell ras setup INF file to install RAS
    ; else invoke RAS to allow user to configure RAS for Switch56. 
    ;
    Read-Syms InvokeRasDlg$(!STF_LANGUAGE)
    Shell "oemnsvra.inf" CheckRasInstalled
    IfInt $($ShellCode) != $(!SHELL_CODE_OK)
        Debug-Output $(InfName)": Error Shelling the RAS INF file oemnsvra.inf" 
        Shell "subroutn.inf" SetupMessage, $(!STF_LANGUAGE),  +
                "STATUS", $(InvokeRasError)
        IfInt $($ShellCode) != $(!SHELL_CODE_OK)
            GoTo ShellCodeError
        EndIf
        GoTo SuccessfulOption
    EndIf
    Set RasInstalled = $($R0)
    Debug-Output $(InfName)": Is RAS Installed? "$(RasInstalled)
    ;
    ; display a message to the user that RAS setup will now be invoked
    ;
    IfStr(i) $(RasInstalled) == FALSE
        Shell "subroutn.inf" SetupMessage, $(!STF_LANGUAGE), "STATUS", +
                $(InvokeRasSetupMsg)
        IfInt $($ShellCode) != $(!SHELL_CODE_OK)
            GoTo SuccessfulOption
        EndIf
    Else
        Shell "subroutn.inf" SetupMessage, $(!STF_LANGUAGE), "STATUS", +
                $(InvokeRasConfigMsg)
        IfInt $($ShellCode) != $(!SHELL_CODE_OK)
            GoTo SuccessfulOption
        EndIf
    EndIf

    ;
    ; Set the flags based on whether this is an IDW installation
    ;
    IfStr(i) $(!STF_IDW) == TRUE
        Set AddCopy  = NO
        Set DoCopy   = NO
        Set DoConfig = NO
    Else
        Set AddCopy  = YES
        Set DoCopy   = YES
        Set DoConfig = YES
    EndIf
    ;
    ; change the global install mode flag to configure if RAS is already installed
    ;
    Set SaveNTN_InstallMode = $(!NTN_InstallMode)
    IfStr(i) $(RasInstalled) == TRUE
            Set !NTN_InstallMode = configure
    Else
            Set !NTN_InstallMode = install
    EndIf
    Debug-Output $(InfName)": post - NTN_InstallMode ="$(!NTN_InstallMode)
	Set SaveSTF_SRCDIR_OVERRIDE = $(!STF_SRCDIR_OVERRIDE)
	Set !STF_SRCDIR_OVERRIDE = ""
    ;
    ; now invoke RAS setup to do the right thing
    ;
    Shell "oemnsvra.inf" InstallOption $(!STF_LANGUAGE) "RAS" $(RasDir) $(AddCopy) $(DoCopy) $(DoConfig)
    ;
    ; restore the global instal mode flag if it was changed
    ;
	Set !NTN_InstallMode = $(SaveNTN_InstallMode)
	Set !STF_SRCDIR_OVERRIDE = $(SaveSTF_SRCDIR_OVERRIDE)

    IfInt $($ShellCode) != $(!SHELL_CODE_OK)
        Debug-Output $(InfName)": Error Shelling the RAS INF file oemnsvra.inf" 
        Shell "subroutn.inf" SetupMessage, $(!STF_LANGUAGE), "STATUS",  +
                $(InvokeRasError)
        IfInt $($ShellCode) != $(!SHELL_CODE_OK)
            GoTo ShellCodeError
        EndIf
        GoTo SuccessfulOption
    EndIf

    EndWait
    GoTo SuccessfulOption

;***********************************************************************
BindingAdapter =+
    Set Error = "Binding: Sorry, not yet implemented."
    GoTo FatalError

;***********************************************************************
;
;***********************************************************************
RemoveAdapter = +

    IfStr(i) $(ProductKeyName) == $(!NTN_RegBase)
        Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
            $(ProductSoftwareName)
        IfInt $($ShellCode) != $(!SHELL_CODE_OK)
            Debug-Output $(InfName)": ShellCode error"
            GoTo ShellCodeError
        EndIf
        Set RegistryErrorIndex = $($R0)
        IfStr(i) $(RegistryErrorIndex) != NO_ERROR
            GoTo FatalRegistry
        EndIf
    Else
        Shell $(UtilityInf), RemoveHardwareComponent, $(Manufacturer), +
            $(ProductSoftwareName), $(!NTN_RegBase)
        IfInt $($ShellCode) != $(!SHELL_CODE_OK)
            Debug-Output $(InfName)": ShellCode error"
            GoTo ShellCodeError
        EndIf
        Set RegistryErrorIndex = $($R0)
        IfStr(i) $(RegistryErrorIndex) != NO_ERROR
            GoTo FatalRegistry
        EndIf
    EndIf
	LibraryProcedure Status, $(!LIBHANDLE), DelFile $(STF_CONTEXTINFNAME)
    Debug-Output $(InfName)": Delete "$(STF_CONTEXTINFNAME)" "$(Status)

    GoTo end

;***********************************************************************
UpgradeSoftware = +
    Debug-Output "$(InfName) $(Option): UpdateSoftware"
    OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) NetworkCardKey
    IfStr $(NetworkCardKey) != $(KeyNull)
       Shell $(UtilityInf), GetInfFileNameFromRegistry, $(NetworkCardKey)
       ifint $($ShellCode) != $(!SHELL_CODE_OK)
           Debug-Output "ShellCode error"
           goto ShellCodeError
       endif
       set !UG_Filename = $($R0)
       Debug-Output "FOO "$(!UG_Filename)
       install "Install-Update"
       ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
           goto fatal
       endif
       SetRegValue $(NetworkCardKey) {MajorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMajorVersion)}
       SetRegValue $(NetworkCardKey) {MinorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMinorVersion)}
       CloseRegKey $(NetworkCardKey)
    else
       goto fatalregistry
    endif
    goto end

;***********************************************************************
SuccessfulOption = +
    GoTo end

;***********************************************************************
Abandon = +
    ForListDo $(OEM_ABANDON_OPTIONS)
        Shell $(UtilityInf), RemoveHardwareComponent, $(Manufacturer), +
            $(ProductSoftwareName), $($)
        IfInt $($ShellCode) != $(!SHELL_CODE_OK)
            Debug-Output $(InfName)": ShellCode error"
            GoTo ShellCodeError
        EndIf
        Set RegistryErrorIndex = $($R0)
        IfStr(i) $(RegistryErrorIndex) != NO_ERROR
            GoTo FatalRegistry
        EndIf
    EndForListDo
    IfStr(i) $(OEM_ABANDON_SOFTWARE) == TRUE
        Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
            $(ProductSoftwareName), FALSE
        IfInt $($ShellCode) != $(!SHELL_CODE_OK)
            Debug-Output $(InfName)": ShellCode error"
            GoTo ShellCodeError
        EndIf
        Set RegistryErrorIndex = $($R0)
        IfStr(i) $(RegistryErrorIndex) != NO_ERROR
            GoTo FatalRegistry
        EndIf
    EndIf
    GoTo end

;***********************************************************************
WarningMsg = +
    Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "WARNING", $(Error)
    IfInt $($ShellCode) != $(!SHELL_CODE_OK)
        GoTo ShellCodeError
    EndIf
    IfStr(i) $($R1) == "OK"
        GoTo $(to)
    Else-IfStr(i) $($R1) == "CANCEL"
        GoTo $(from)
    EndIf
    GoTo end

;***********************************************************************
NonFatalInfo = +
    Set Severity = STATUS
    Set CommonStatus = STATUS_USERCANCEL
    IfStr(i) $(Error) == ""
        Set Severity = NONFATAL
        Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
        IfInt $($ShellCode) != $(!SHELL_CODE_OK)
            GoTo ShellCodeError
        EndIf
        Set Error = $($R0)
    EndIf
    Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), $(Severity), $(Error)
    IfInt $($ShellCode) != $(!SHELL_CODE_OK)
        GoTo ShellCodeError
    EndIf
    IfStr(i) $($R1) == "OK"
        GoTo $(from)
    EndIf
    GoTo end

;***********************************************************************
FatalRegistry = +
    Shell $(UtilityInf) RegistryErrorString $(RegistryErrorIndex)
    IfInt $($ShellCode) != $(!SHELL_CODE_OK)
        GoTo ShellCodeError
    EndIf
    Set Error = $($R0)
    GoTo FatalError

;***********************************************************************
FatalDetect = +
    Shell $(UtilityInf),RegistryErrorString,CANNOT_DETECT
    IfInt $($ShellCode) != $(!SHELL_CODE_OK)
        Debug-Output $(InfName)": ShellCode error: cannot get an error string."
        GoTo ShellCodeError
    EndIf
    Set Error = $($R0)
    GoTo FatalError

;***********************************************************************
FatalError = +
    IfStr(i) $(Error) == ""
        Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
        IfInt $($ShellCode) != $(!SHELL_CODE_OK)
            GoTo ShellCodeError
        EndIf
        Set Error = $($R0)
    EndIf
    Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "FATAL", $(Error)
    IfInt $($ShellCode) != $(!SHELL_CODE_OK)
        GoTo ShellCodeError
    EndIf
    GoTo SetFailed

;***********************************************************************
ShellCodeError = +
    Set DlgType      = "MessageBox"
    Set STF_MB_TITLE = $(ShellCodeErrorTitle)
    Set STF_MB_TEXT  = $(ShellCodeErrorText)
    Set STF_MB_TYPE  = 1
    Set STF_MB_ICON  = 3
    Set STF_MB_DEF   = 1
    UI Start "Error Message"
    GoTo SetFailed

;***********************************************************************
SetFailed = +
    Set CommonStatus = STATUS_FAILED
    IfStr(i) $(OEM_ABANDON_ON) == TRUE
        Set OEM_ABANDON_ON = FALSE
        GoTo Abandon
    EndIf
    GoTo end

;***********************************************************************
end = +
    Set !DebugOutputControl = $(OldDebugControl)
    Return $(CommonStatus)

;***********************************************************************
[HtCreateRegKey]
    Debug-Output $(InfName)": Entering [HtCreateRegKey]"
    Set ECR_Result          = NO_ERROR
    Set ECR_BaseKeyHandle   = $($0)
    Set ECR_NewPath         = $($1)
    Set KeyNull             = ""
    Set MAXIMUM_ALLOWED     = 33554432

    Debug-Output $(InfName)": HtCreateRegKey - ECR_BaseKeyHandle = "$(ECR_BaseKeyHandle)
    Debug-Output $(InfName)":                  ECR_NewPath       = "$(ECR_NewPath)
    Debug-Output $(InfName)":                  MAXIMUM_ALLOWED   = "$(MAXIMUM_ALLOWED)
    Debug-Output $(InfName)":                  KeyNull           = "$(KeyNull)

    OpenRegKey $(ECR_BaseKeyHandle) "" $(ECR_NewPath) $(MAXIMUM_ALLOWED) +
               ECR_BaseKey
    Debug-Output $(InfName)": ECR_BaseKey = "$(ECR_BaseKey)
    Debug-Output $(InfName)":     OpenRegKey returned "$($R0)
    IfStr $(ECR_BaseKey) == $(KeyNull)
        Debug-Output $(InfName)": ECR_BaseKey == KeyNull"
    Else
        Debug-Output $(InfName)": ECR_BaseKey != KeyNull"
        Set ECR_KeyHandle = $(ECR_BaseKey)
        GoTo  ECR_Return
    EndIf

    Set ECR_TmpPath = ""
    Split-String $(ECR_NewPath) "\" ECR_PList
    Debug-Output $(InfName)": ECR_PList = "$(ECR_PList)
    ForListDo $(ECR_PList)
        IfStr(i) $($) != "\"
            IfInt $(#) == 1
                Set ECR_TmpPath = $($)
            Else
                Set ECR_TmpPath = $(ECR_TmpPath)"\"$($)
            EndIf
            Debug-Output $(InfName)": Determining if "$(ECR_TmpPath)" exists"
            OpenRegKey $(ECR_BaseKeyHandle) "" $(ECR_TmpPath) $(MAXIMUM_ALLOWED) ECR_BaseKey
            IfStr $(ECR_BaseKey) == $(KeyNull)
                Debug-Output $(InfName)": Creating "$(ECR_TmpPath)
                CreateRegKey $(ECR_BaseKeyHandle)  {$(ECR_TmpPath),0,GenericClass} "" $(MAXIMUM_ALLOWED) "" ECR_KeyHandle
                IfStr(i) $(ECR_KeyHandle) == $(KeyNull)
                    Set ECR_Result = $($R0)
                    GoTo ECR_Return
                EndIf
            EndIf
        EndIf
    EndForListDo
ECR_Return = +
    Return $(ECR_Result) $(ECR_KeyHandle)

;***********************************************************************
[DebugConfiguration]
    Debug-Output $(!p:InfName)": **CONFIGURATION STATE: "$($0)
    Debug-Output $(!p:InfName)": InterruptNumber is "$(!p:InterruptNumber)
    Debug-Output $(!p:InfName)": IOBaseAddress  is "$(!p:IOBaseAddress)
    Return

;***********************************************************************
[Install-Option]
    Set STF_VITAL = ""
    IfStr(i) $(AddCopy) == "YES"
        AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
	IfInt $(multifunction) == $(TRUE)
 		AddSectionFilesToCopyList Files-Modem $(SrcDir) $(!STF_WINDOWSPATH)\Inf
	endif
    EndIf
    IfStr(i) $(DoCopy) == "YES"
       Set !STF_NCPA_FLUSH_COPYLIST = TRUE
       CopyFilesInCopyList
    EndIf
    Exit

;***********************************************************************
[Install-Update]
   Set STF_VITAL        = ""
   Set STF_OVERWRITE    = "VERIFYSOURCEOLDER"
   AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
   AddSectionFilesToCopyList Files-Dll $(SrcDir) $(!STF_WINDOWSSYSPATH)
   AddSectionFilesToCopyList Files-Inf $(SrcDir) $(!STF_WINDOWSSYSPATH)
	IfInt $(multifunction) == $(TRUE)
 		AddSectionFilesToCopyList Files-Modem $(SrcDir) $(!STF_WINDOWSPATH)\Inf
	endif
   Set !STF_NCPA_FLUSH_COPYLIST = TRUE
   CopyFilesInCopyList
   Exit

;***********************************************************************
[Install-Dll]
    Set STF_VITAL = ""
    AddSectionFilesToCopyList Files-Dll $(SrcDir) $(!STF_WINDOWSSYSPATH)
    Set !STF_NCPA_FLUSH_COPYLIST = TRUE
    CopyFilesInCopyList
    Exit

;***********************************************************************
[Source Media Descriptions]
    1  = $(SourceMediaStr) , TAGFILE = subspPnP.sys

;***********************************************************************
[ProductType]
    STF_PRODUCT         = Winnt
    STF_PLATFORM        = I386

;***********************************************************************
[Files-Inf]
    1, oemsetup.inf, SIZE=70000, RENAME=$(!UG_Filename)

[Files-Dll]
 	1, acntwiz.dll, SIZE=70000

[Files-Modem]
 	1, mdms56kw.inf, SIZE=36000

;***********************************************************************
;***********************************************************************
[OptionsTextENG]
;MFG	NetWarp             = "Ascend: NetWarp 128 U BR-ISDN w/ Jumpers"
;MFG    NetWarpB            = "Ascend: NetWarp 128 BR-ISDN (PnP Disabled)"
;MFG	PipeLine10	= "Ascend: PipeLine 10 BR-ISDN + K56 Modem PCMCIA"
	Clipper		= "IBM 56K/ISDN PC Card Data/Fax Modem/GSM"

;----------------------------------------------------------------------
[Files-NetWarp]
 	1, subspPnP.SYS, SIZE=195000

[FileConstantsNetWarp]
	SourceMediaStr	= "Subspace/Ascend NetWarp ISDN Drivers Diskette"
	VendorName		= "Ascend Communications"
	Manufacturer    = "Ascend"
	AdapterName		= "NetWarp"
	CProdName		= "NetWarp"
	PCMCIA 			= 0
	multifunction	= $(FALSE)
	useCustomDll	= $(FALSE)

	ProductSoftwareNetWarpImagePath = "\SystemRoot\System32\drivers\subspPnP.sys"
	NetRuleSoftwareNetWarpType     = "NetWarpSys NetWarpDriver"
	NetRuleSoftwareNetWarpUse      = $(SoftwareType)
	NetRuleSoftwareNetWarpBindForm = """NetWarpSys"" yes no container"
	NetRuleSoftwareNetWarpClass    = {"NetWarpDriver basic"}
	NetRuleSoftwareNetWarpBindable = {"NetWarpDriver NetWarpAdapter non exclusive 100"}
	NetRuleHardwareNetWarpBindFormr	= " yes yes container"
	NetRuleHardwareNetWarpType		= "NetWarp NetWarpAdapter"
	NetRuleHardwareNetWarpClass		= {"NetWarpAdapter basic"}

	IO_Addr_List_NetWarp			= {648, 568, 600, 768, 880, 904, 936}
	IRQ_List_NetWarp       			= {5, 7, 10, 11, 12}

;----------------------------------------------------------------------
[Files-NetWarpB]
 	1, subspPnP.SYS, SIZE=195000

[FileConstantsNetWarpB]
	SourceMediaStr	= "Ascend NetWarp ISDN Drivers CD-ROM/Diskette"
	VendorName		= "Ascend Communications"
	Manufacturer    = "Ascend"
	AdapterName		= "NetWarp"
	CProdName		= "NetWarp"
	PCMCIA 			= 0
	multifunction	= $(FALSE)
	useCustomDll	= $(FALSE)

	ProductSoftwareNetWarpBImagePath= "\SystemRoot\System32\drivers\subspPnP.sys"
	NetRuleSoftwareNetWarpBType     = "NetWarpSys NetWarpDriver"
	NetRuleSoftwareNetWarpBUse      = $(SoftwareType)
	NetRuleSoftwareNetWarpBBindForm = """NetWarpSys"" yes no container"
	NetRuleSoftwareNetWarpBClass    = {"NetWarpDriver basic"}
	NetRuleSoftwareNetWarpBBindable = {"NetWarpDriver NetWarpAdapter non exclusive 100"}
	NetRuleHardwareNetWarpBBindForm = " yes yes container"
	NetRuleHardwareNetWarpBType		= "NetWarp NetWarpAdapter"
	NetRuleHardwareNetWarpBClass	= {"NetWarpAdapter basic"}

	IO_Addr_List	= ^(ISDNmdmIoBase, 2)
	IRQ_List        = {5, 3, 7, 9, 10, 11, 12, 15}


;----------------------------------------------------------------------
[Files-PipeLine10]
    1, subspPnP.SYS, SIZE=200000, RENAME=Pipe10.sys

[FileConstantsPipeLine10]
	SourceMediaStr	= "Ascend Pipeline 10 ISDN Drivers Diskette"
	VendorName		= "Ascend Communications"
	Manufacturer    = "Ascend"
	AdapterName		= "Pipeline 10"
	CProdName		= "Pipe10"
	PCMCIA			= 1
	multifunction	= $(TRUE)
	useCustomDll	= $(TRUE)

	WhateverTheNameIs		= "Ascend\Pipeline 10"

	ProductSoftwarePipeLine10ImagePath = "\SystemRoot\System32\drivers\Pipe10.sys"
	NetRuleSoftwarePipeLine10Type     = "Pipe10Sys Pipe10Driver"
	NetRuleSoftwarePipeLine10Use      = $(SoftwareType)
	NetRuleSoftwarePipeLine10BindForm = """Pipe10Sys"" yes no container"
	NetRuleSoftwarePipeLine10Class    = {"Pipe10Driver basic"}
	NetRuleSoftwarePipeLine10Bindable = {"Pipe10Driver Pipe10Adapter non exclusive 100"}

	NetRuleHardwarePipeLine10BindForm = " yes yes container"
	NetRuleHardwarePipeLine10Type		= "Pipe10 Pipe10Adapter"
	NetRuleHardwarePipeLine10Class	= {"Pipe10Adapter basic"}

	IO_Addr_List	= ^(ISDNmdmIoBase, 2)
	IRQ_List	    = ^(ISDNmdmIrqs, 2)

;----------------------------------------------------------------------
;----------------------------------------------------------------------
[Files-Clipper]
    1, subspPnP.SYS, SIZE=200000, RENAME=ClipCom.sys

[FileConstantsClipper]
	SourceMediaStr	= "Disk 1"
	VendorName		= "IBM Corporation"
	Manufacturer    = "IBM"
	AdapterName		= "IBM ISDN"
	CProdName		= "IBMISDN"
	PCMCIA			= 1
	multifunction	= $(TRUE)
	useCustomDll	= $(TRUE)

	WhateverTheNameIs		= "IBM\ISDN/56K/GSM"

	ProductSoftwareClipperImagePath = "\SystemRoot\System32\drivers\ClipCom.sys"
	NetRuleSoftwareClipperType     = "ClipComSys ClipComDriver"
	NetRuleSoftwareClipperUse      = $(SoftwareType)
	NetRuleSoftwareClipperBindForm = """ClipComSys"" yes no container"
	NetRuleSoftwareClipperClass    = {"ClipComDriver basic"}
	NetRuleSoftwareClipperBindable = {"ClipComDriver ClipComAdapter non exclusive 100"}

	NetRuleHardwareClipperBindForm = " yes yes container"
	NetRuleHardwareClipperType		= "ClipCom ClipComAdapter"
	NetRuleHardwareClipperClass	= {"ClipComAdapter basic"}

	IO_Addr_List	= ^(ISDNmdmIoBase, 2)
	IRQ_List	    = ^(ISDNmdmIrqs, 2)


;***********************************************************************
;***********************************************************************
[LanguagesSupported]
    ENG

;***********************************************************************
[FileConstantsENG]
    ProCaption          = "Windows NT Setup"
    ProCancel           = "Cancel"
    ProCancelMsg        = "Windows NT Networking is not correctly installed.  "+
                          "Are you sure you want to cancel copying files?"
    ProCancelCap        = "Network Setup Message"
    ProText1            = "Copying:"
    ProText2            = "To:"

    ProductSoftwareDescription	= $(VendorName)" "$(AdapterName)" Driver"
    ProductSoftwareTitle       	= $(ProductSoftwareDescription)

    FunctionTitle      		= $(VendorName)" "$(AdapterName)" Card Setup"

    ProductHardwareDescription	= $(VendorName)" "$(AdapterName)
    ProductHardwareTitle   		= $(VendorName)" "$(AdapterName)" Adapter"

    ShellCodeErrorTitle                 = "Error: "$(FunctionTitle))
    ShellCodeErrorText                  = "Shell Code Error."

;***********************************************************************
[DialogConstantsENG]
    Help                = "&Help"
    Exit                = "Cancel"
    OK                  = "OK"
    HelpContext         = ""
    Continue            = "Continue"
    Cancel              = "Cancel"

;***********************************************************************
[FileDependentDlg2ENG]
	Group1				= "Link Type"
	Radio1				= "&Point to Point"
	Radio2				= "&Multi-Point"
	Edit1Label			= "&SPID List:"
    DlgType             = "RadioCombination"
    DlgTemplate         = "IBM_TOKEN"
    Caption             = $(FunctionTitle)
    ComboListItemsIn    = {}
    ComboListItemsOut   = {}
	RadioIn				= {$(PointType)}
    EditTextIn          = $(Spid0)" "$(Spid1)
    EditTextLim         = 41
	EditFocus			= "ALL"
    CBOptionsGreyed     = {}
	RCCtlFocusOn		= 403
;    NotifyFields        = {NO, NO}
;    HelpContext         = $(!IDH_DB_OEMNADN2_INS)

;***********************************************************************
[FileDependentDlg3ENG]
	Group1				= "Interface Type"
	Radio1				= "&U-Interface"
	Radio2				= "&S/T-Interface"
	Edit1Label			= "&Telephone Number List:"
    DlgType             = "RadioCombination"
    DlgTemplate         = "IBM_TOKEN"
    Caption             = $(FunctionTitle)
    ComboListItemsIn    = {}
    ComboListItemsOut   = {}
	RadioIn				= {$(LineType)}
    EditTextIn          = $(DN0)" "$(DN1)
    EditTextLim         = 21 
	EditFocus			= "ALL"
    CBOptionsGreyed     = {}
	RCCtlFocusOn		= 403
;    NotifyFields        = {NO, NO}
;    HelpContext         = $(!IDH_DB_OEMNADN2_INS)

;***********************************************************************
[FileDependentDlg4ENG]
    Combo1Label         = "&IRQ Level:"
    Combo2Label         = "IO Base &Address:"
    Combo3Label         = "&Switch Type:"
    DlgType             = "MultiCombo"
    DlgTemplate         = "WD"
    Caption             = $(FunctionTitle)
    Combo1List          = $(IRQ_List)
    Combo1Out           = $(InterruptNumber)
    Combo2List          = $(IO_Hex_List)
    Combo2Out           = $(IO_Hex_Value)
    Combo3List          = $(SwitchTypeList)
    Combo3Out           = $(SwitchValue)
    ComboListItemsIn    = {Combo1List, Combo2List, Combo3List}
    ComboListItemsOut   = {Combo1Out, Combo2Out, Combo3Out}
    EditTextIn          = ""
    EditTextLim         = ""
    CBOptionsGreyed     = {}
    NotifyFields        = {NO, NO, NO}
;    HelpContext         = $(!IDH_DB_OEMNADN2_INS)

[FileDependentDlg6ENG]
;***********************************************************************
; Configurable Text strings for setup wizard
;***********************************************************************
page1Text1 = "During the setup process you will need to give Windows "+
	" some information about your ISDN service."
 
page1Text2 = "Because your operating system does not fully support PC Card"+
 " (PCMCIA) Card and Socket Services you will also be asked to define a"+
 " non-conflicting"+
 " address space for your "$(AdapterName)" adapter to reside."
 
page2Text1 = "Select the switch protocol your ISDN line will use. This"+
 " information should have been provided to you by your phone company  "+
 "North American users may select Automatic and the "$(AdapterName)" will"+
 " determine the switch type automatically."
 
page2Text2 = "ISDN Switch Protocol :"

page2pt5Combo1	= {"U-Interface","S/T-Interface"}

page2pt5Text1 = "Please select the type of ISDN interface dongle you are using"+
 " with your "$(AdapterName)".  The type of dongle must match the characteristics"+
 " of your ISDN line.  In general,  North American users should select 'U'"+
 " while European and Asian users should select 'S/T'."

page2pt5Text2 = "Interface Type :"
 
page3Text1 = "Enter the telephone numbers and their corresponding"+
 " SPIDS if any. If your line does not have SPIDs, leave the fields"+
 " blank. If you only have one phone number, leave the second Number and"+
 " SPID boxes blank".
 
page3Text2 = "The "$(AdapterName)" is capable of automatically determining"+
" SPID values in North America on most line types. To enable this feature"+
" select 'Automatic' as your switch protocol and leave the SPID fields blank"
 
page3Text3 = "Phone Number :"
page3Text4 = "SPID :"
page3Text5 = "Phone Number :"
page3Text6 = "SPID :"
 
page4Text1 = "Define a unique address space for the "$(AdapterName)" to"+
 " reside on your computer"
page4Text2 = "IO Base Address :"
page4Text3 = "PC Card Memory :"
page4Text4 = "COM Port Address :"
page4Text5 = "Interrupt Number :"
page5Text1 = "Configuration of your "$(AdapterName)" Adapter is complete." 
page5Text2 = "If your configuration settings have changed you will need"+
 " to restart your computer before the changes will take effect."
 
;***********************************************************************
	Caption         = $(VendorName)" "$(AdapterName)" Setup Wizard"
	Combo1List      = $(IrqValues)
	Combo1Out       = $(InterruptNumber)
	Combo2List      = $(IoBaseList)
	Combo2Out       = $(IO_Hex_Value)
	Combo3List		= $(MemBaseList)
	Combo3Out		= $(MemAddress)
	Combo4List		= $(SwitchTypeList)
    Combo4Out       = $(SwitchValue)
	Combo7List      = $(COMBaseList)
	Combo7Out       = $(ComPortStr)

	page3Edit1		= $(DN0)
	page3Edit2		= $(Spid0)
	page3Edit3		= $(DN1)
	page3Edit4 		= $(Spid1)
;***********************************************************************
[InvokeRasDlgENG]
    InvokeRasSetupMsg   = $(VendorName)" "$(AdapterName)" setup is complete. "+
           "Remote Access Services (RAS) must now be installed. "+
           "Please configure the "$(AdapterName)" ports in RAS "+
           "setup to enable you to use RAS over the "$(AdapterName)"."

    InvokeRasConfigMsg  = $(VendorName)" "$(AdapterName)" setup is complete. "+
           "Remote Access Services (RAS) setup must now be invoked. "+
           "Please configure the "$(AdapterName)" ports in RAS "+
           "setup to enable you to use RAS over the "$(AdapterName)"."

    InvokeRasError      = $(VendorName)" "$(AdapterName)" setup encountered an error "+
           "while invoking the RAS setup INF file (OEMNSVRA.INF). "+
           "Please make sure that the file is present in the "+
           "System32 directory and is the proper file." 

    InvokeRasInstallMsg  = "Warning! To ensure the proper installation of your "+
		 	$(VendorName)" "$(AdapterName)" Adapter under Windows NT"+
		  	", RAS must not "+
			"exist prior to the installation of the driver "+
			"software. If RAS has already been installed, "+
			"abort this installation and remove RAS before "+
			"attempting to installed the driver. "



Download Driver Pack

How To Update Drivers Manually

After your driver has been downloaded, follow these simple steps to install it.

  • Expand the archive file (if the download file is in zip or rar format).

  • If the expanded file has an .exe extension, double click it and follow the installation instructions.

  • Otherwise, open Device Manager by right-clicking the Start menu and selecting Device Manager.

  • Find the device and model you want to update in the device list.

  • Double-click on it to open the Properties dialog box.

  • From the Properties dialog box, select the Driver tab.

  • Click the Update Driver button, then follow the instructions.

Very important: You must reboot your system to ensure that any driver updates have taken effect.

For more help, visit our Driver Support section for step-by-step videos on how to install drivers for every file type.

server: web1, load: 0.66