home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DOS/V Power Report 1996 February
/
VPR9602A.ISO
/
drvlib
/
netcard
/
x86
/
irmant
/
oemsetup.inf
< prev
Wrap
INI File
|
1995-10-27
|
47KB
|
1,738 lines
;***********************************************************************
;
; OEMSETUP.INF
;
; DCA IRMAtrac network card and driver SETUP INF file.
;
; History:
;***********************************************************************
;-----------------------------------------------------------------------
; OPTION TYPE
; -----------
; This identifies the Option type we are dealing with. The different
; possible types are:
;
; COMPUTER, DISPLAY, MOUSE, KEYBOARD, LAYOUT, SCSI, PRINTER, ...
;
; Types specific to networking:
;
; NetAdapter, a netcard / adapter combination or just a netcard
; NetDriver, just a netcard driver
; NetTransport, a complete NDIS-compliant TDI transport stack
; NetService, an NT networking service
; NetWork, a complete network ensemble.
; NetProvider a complete network which supports NT MPR protocol
;-----------------------------------------------------------------------
[Identification]
OptionType = NetAdapter
;-----------------------------------------------------------------------
; PlatformsSupported
; ------------------
; This identifies the platforms supported by the adapter card.
; Possible types are:
;
; ISA, EISA and MCA
;-----------------------------------------------------------------------
[PlatformsSupported]
ISA
MCA
EISA
;-----------------------------------------------------------------------
; OPTION LIST
; -----------
; This section lists the OEM Option key names. These keys are locale
; independent and used to represent the option in a locale independent
; manner.
;
;-----------------------------------------------------------------------
[Options]
IRMAtrac
;***********************************************************************
; CONSTANTS FOR USING DIALOGS
;***********************************************************************
[FileConstants]
GenericInfVersion = " v4.0.0c"
GenericAdapterName = "DCA IRMAtrac Token-Ring Adapter"
GenericDriverName = "DCA IRMAtrac Token-Ring Driver"
GenericSysName = "IRMAtrac.sys"
GenericName = "IRMAtrac"
;
; File names, etc.
;
UtilityInf = "UTILITY.INF"
ParamInf = "NCPARAM.INF"
subroutineinf = "SUBROUTN.INF"
SoftwareType = "driver"
Exit_Code = 0
;
; EventLog Message File
;
NetEventDLL = "%SystemRoot%\System32\netevent.dll"
IoLogMsgDLL = "%SystemRoot%\System32\IoLogMsg.dll"
IRMAtrac_LOBYTE = 28
IRMAtrac_PHASEII = 29
IRMAtrac_HIBYTE = 92
NETCARD_ID1 = { 23580}
NETCARD_ID2 = { 23581}
IRMAtrac_1BYTE = 155920
; Product Info
;
Manufacturer = "Microsoft"
ProductMajorVersion = "3"
ProductMinorVersion = "1"
ProductVersion = $(ProductMajorVersion)"."$(ProductMinorVersion)
;
; Software
;
ProductSoftwareName = "IRMAtrac"
ProductSoftwareImagePath = "\SystemRoot\System32\drivers\"$(GenericSysName)
NetRuleSoftwareType = "IRMAtracSys ndisDriver IRMAtracDriver"
NetRuleSoftwareUse = $(SoftwareType)
NetRuleSoftwareBindForm = """IRMAtracSys"" yes no container"
NetRuleSoftwareClass = {"IRMAtracDriver basic"}
NetRuleSoftwareBindable = {"IRMAtracDriver IRMAtracAdapter non exclusive 100"}
;
; Hardware
;
ProductHardwareName = "IRMAtrac"
NetRuleHardwareType = "IRMAtrac IRMAtracAdapter"
NetRuleHardwareBindForm = " yes yes container"
NetRuleHardwareClass = {"IRMAtracAdapter basic"}
;
; Registry Key
;
ProductKeyName = $(!NTN_SoftwareBase)"\"$(Manufacturer)"\"$(ProductSoftwareName)"\CurrentVersion"
ParamKeyName = $(!NTN_ServiceBase)"\"$(ProductHardwareName)"\Parameters"
[GeneralConstants]
;
; Program flow control variables.
;
from = ""
to = ""
;
; Return codes; Exit_Code is set to one of these
;
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 is a list which contains { Sec from 1-1-1970, Year, Month, Day, Hour,
; Minute, Second }
Now = {} ? $(!LIBHANDLE) GetSystemDate
;---------------------------------------------------------------------------
; 1. Identify
;
; DESCRIPTION: To verify that this INF deals with the same type of options
; as we are choosing currently.
;
; INPUT: None
;
; OUTPUT: $($R0): STATUS: STATUS_SUCCESSFUL
; $($R1): Option Type (COMPUTER ...)
; $($R2): Diskette description
;---------------------------------------------------------------------------
[Identify]
;
;
read-syms Identification
set Status = STATUS_SUCCESSFUL
set Identifier = $(OptionType)
set Media = #("Source Media Descriptions", 1, 1)
Return $(Status) $(Identifier) $(Media)
;------------------------------------------------------------------------
; 2. ReturnOptions:
;
; DESCRIPTION: To return the option list supported by this INF and the
; localised text list representing the options.
;
;
; INPUT: $($0): Language used. ( ENG | FRN | ... )
;
; OUTPUT: $($R0): STATUS: STATUS_SUCCESSFUL |
; STATUS_NOLANGUAGE
; STATUS_FAILED
; STATUS_NOTSUPPORTED
;
; $($R1): Option List
; $($R2): Option Text List
;------------------------------------------------------------------------
[ReturnOptions]
;
;
set Status = STATUS_FAILED
set OptionList = {}
set OptionTextList = {}
;
; Check if the language requested is supported
;
set LanguageList = ^(LanguagesSupported, 1)
Ifcontains(i) $($0) in $(LanguageList)
;
; Check if the platforms requested is supported
;
ifstr(i) $($1) == ""
goto returnoptions
endif
set PlatformList = ^(PlatformsSupported, 1)
Ifcontains(i) $($1) in $(PlatformList)
goto returnoptions
else
set Status = STATUS_NOTSUPPORTED
goto finish_ReturnOptions
endif
else
set Status = STATUS_NOLANGUAGE
goto finish_ReturnOptions
endif
;
; form a list of all the options and another of the text representing
;
returnoptions = +
set OptionList = ^(Options, 1)
set OptionTextList = ^(OptionsText$($0), 1)
set Status = STATUS_SUCCESSFUL
finish_ReturnOptions = +
Return $(Status) $(OptionList) $(OptionTextList)
;------------------------------------------------------------------------
;
; InstallOption:
;
; This section is shelled to by main installation processing
; or by NCPASHEL.INF during reconfig, removal, update, etc.
;
;
; FUNCTION: To copy files representing Options
; To configure the installed option
; To update the registry for the installed option
;
; INPUT: $($0): Language to use
; $($1): OptionID to install
; $($2): SourceDirectory
; $($3): AddCopy (YES | NO)
; $($4): DoCopy (YES | NO)
; $($5): DoConfig (YES | NO)
;
; OUTPUT: $($R0): STATUS: STATUS_SUCCESSFUL |
; STATUS_NOLANGUAGE |
; STATUS_USERCANCEL |
; STATUS_FAILED
;
;------------------------------------------------------------------------
[InstallOption]
;
; Set default values for
;
set Status = STATUS_FAILED
;
; extract parameters
;
set Option = $($1)
set SrcDir = $($2)
set AddCopy = $($3)
set DoCopy = $($4)
set DoConfig = $($5)
ifstr(i) $(SrcDir) == ""
Set SrcDir = "A:\"
Endif
;
; Check if the language requested is supported
;
set LanguageList = ^(LanguagesSupported, 1)
Ifcontains(i) $($0) NOT-IN $(LanguageList)
Return STATUS_NOLANGUAGE
endif
set-subst LF = "\n"
read-syms GeneralConstants
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
;
; Assume all is well.
;
set CommonStatus = STATUS_SUCCESSFUL
EndWait
;
; Set up the operation-mode-based variables and gaily welcome
; the user. If the "install mode" variable is improperly set,
; assume this is a new installation.
;
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 ActivateDetection = TRUE
set StartLabel = configureadapter
;
; You cannot config the software component
;
Ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
Debug-Output "Cannot configure the DCA IRMAtrac driver software."
Shell $(UtilityInf),RegistryErrorString,CANNOT_CONFIGURE_SOFTWARE
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "ShellCode error: cannot get an error string."
goto ShellCodeError
endif
set Error = $($R0)
set from = end
set to = end
goto nonfatalinfo
endif
else
; set ActivateDetection = TRUE
set StartLabel = installadapter
set OEM_ABANDON_OPTIONS = {}
set OEM_ABANDON_SOFTWARE = FALSE
set OEM_ABANDON_ON = TRUE
endif
; set the default values
; IRQ Level = 3
set IRQValue = *($(IRQList), 2)
; IOBase Address = 0xa20
set IOBaseAddrValue = *($(IOBaseAddrList), 2)
; DMACHANNEL = 5
set DmaChannelValue = *($(DmaChannelList), 2)
; Burst
set BurstSizeValue = *($(BurstSizeList), 1)
; RECVBUFCOUNT = 16
set RecvListCountValue = *($(RecvListCountList), 6)
; MAXTRANSMITS = 64
set XmitListCountValue = *($(XmitListCountList), 7)
; MAXFRAMELEN = 4500
set PacketsizeValue = *($(PacketsizeList), 3)
set RadioIn = { 2, 3, 6 }
Set from = $(fatal)
Set to = $(fatal)
Goto $(StartLabel)
;-----------------------------------------------
; Installation Section
;-----------------------------------------------
installadapter = +
;
; First, check whether the same version of the software exists
;
OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
Ifstr $(KeyProduct) != $(KeyNull)
;
; Same version already existed in the local machine
; Popup the dialog and ask the user whether he wants to continue
;
CloseRegKey $(KeyProduct)
ifstr(i) !(NTN_RegBase) == $(ProductKeyName)
;
; Cannot Install the same software again
;
Shell $(UtilityInf), VerExistedDlg, $(ProductSoftwareTitle),+
$(ProductVersion)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "ShellCode error: cannot get an error string."
goto ShellCodeError
endif
goto end
else
;
; Add a new adapter card?
;
Shell $(UtilityInf), CardExistedDlg
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "ShellCode error: cannot get an error string."
goto ShellCodeError
endif
ifstr(i) $($R1) != "OK"
goto end
endif
set OldVersionExisted = $(TRUE)
endif
endif
;
; dll load addition
;
Shell $(UtilityInf), DoAskSource, $(!STF_CWDDIR), $(SrcDir) NO
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 fatal
Else-Ifstr(i) $($R0) == STATUS_USERCANCEL
Goto successful
Endif
Set SrcDir = $($R1)
install "Install-Dll"
goto adaptersetup
;-----------------------------------------------
; Configuration Section
;-----------------------------------------------
;
; Get the current values of all the parameters
;
configureadapter = +
Ifstr $(KeyProduct) == $(KeyNull)
OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_RegBase) $(MAXIMUM_ALLOWED) KeyProduct
Ifstr $(KeyProduct) == $(KeyNull)
set RegistryErrorIndex = CANNOT_FIND_COMPONENT_SERVICE
Debug-Output "Cannot find component product key"
goto fatalregistry
Endif
Endif
;
; Get the other parameters; they're attached to the service parameters key
;
Debug-Output "INF: Shelling to FindService"
Shell $(UtilityInf) FindService, $(KeyProduct)
Ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "INF: FindService shell failure"
Goto ShellCodeError
Endif
Ifstr(i) $($R0) != NO_ERROR
Debug-Output "INF: FindService Shell error: "$($R0)
Goto fatalregistry
endif
Set KeyParameters = $($R2)
;
; We don't need the services key, so close it.
;
CloseRegKey $($R1)
Ifstr $(KeyParameters) == $(KeyNull)
set RegistryErrorIndex = CANNOT_FIND_COMPONENT_SERVICE
Debug-Output "Cannot find component service"
goto fatalregistry
endif
set OldVersionExisted = $(TRUE)
set ValueName = ""
set ValueData = ""
set ValueStr = ""
set ValueList = {}
;
; Get the old values
;
EnumRegValue $(KeyParameters) ValueList
ForListDo $(ValueList)
set ValueItem = $($)
set ValueName = *($(ValueItem),1)
set ValueData = *($(ValueItem),4)
ifstr(i) $(ValueName) == "INTERRUPT"
set IRQValueIndex = $(ValueData)
else-ifstr(i) $(ValueName) == "IOADDRESS"
set IOBaseAddrIndex = $(ValueData)
else-ifstr(i) $(ValueName) == "DMACHANNEL"
set DmaChannelIndex = $(ValueData)
else-ifstr(i) $(ValueName) == "BURSI"
set BurstSizeIndex = $(ValueData)
else-ifstr(i) $(ValueName) == "RECVBUFCOUNT"
set RecvListCountIndex = $(ValueData)
else-ifstr(i) $(ValueName) == "MAXTRANSMITS"
set XmitListCountIndex = $(ValueData)
else-ifstr(i) $(ValueName) == "MAXFRAMELEN"
set PacketsizeIndex = $(ValueData)
else-Ifstr(i) $(ValueName) == "CABLETYPE"
set CABLETYPE = $(ValueData)
else-Ifstr(i) $(ValueName) == "DATARATE"
set DATARATE = $(ValueData)
else-Ifstr(i) $(ValueName) == "EARLYRELEASE"
set EARLYRELEASE = $(ValueData)
else-Ifstr(i) $(ValueName) == "NetworkAddress"
set NetworkAddress = $(ValueData)
endif
EndForListDo
set IRQValue = *($(IRQList), ~($(IRQValues),$(IRQValueIndex)))
ifstr(i) $(IRQValue) == ""
set IRQValue = *($(IRQList), 2)
endif
set DmaChannelValue = *($(DmaChannelList), ~($(DmaChannelValues),$(DmaChannelIndex)))
ifstr(i) $(DmaChannelValue) == ""
set DmaChannelValue = *($(DmaChannelList), 2)
endif
set BurstSizeValue = *($(BurstSizeList), ~($(BurstSizeValues),$(BurstSizeIndex)))
ifstr(i) $(BurstSizeValue) == ""
set BurstSizeValue = *($(BurstSizeList), 1)
endif
set RecvListCountValue = *($(RecvListCountList), ~($(RecvListCountValues),$(RecvListCountIndex)))
ifstr(i) $(RecvListCountValue) == ""
set RecvListCountValue = *($(RecvListCountList), 6)
endif
set XmitListCountValue = *($(XmitListCountList), ~($(XmitListCountValues),$(XmitListCountIndex)))
ifstr(i) $(XmitListCountValue) == ""
set XmitListCountValue = *($(XmitListCountList), 4)
endif
set PacketsizeValue = *($(PacketsizeList), ~($(PacketsizeValues),$(PacketsizeIndex)))
ifstr(i) $(PacketsizeValue) == ""
set PacketsizeValue = *($(PacketsizeList), 3)
endif
set IOBaseAddrValue = *($(IOBaseAddrList), ~($(IOBaseAddrValues),$(IOBaseAddrIndex)))
ifstr(i) $(IOBaseAddrValue) == ""
set IOBaseAddrValue = *($(IOBaseAddrList), 2)
endif
Ifint $(EARLYRELEASE) == 1
set Rad1 = 1
else
set Rad1 = 2
endif
Ifint $(DATARATE) == 4
set Rad2 = 3
else
set Rad2 = 4
endif
Ifstr(i) $(CABLETYPE) == 1
set Rad3 = 5
else
set Rad3 = 6
endif
set RadioIn = {$(Rad1), $(Rad2), $(Rad3) }
; Save the settings as they were read from the Registry.
; Shell $(ParamInf) Param_SaveValues
; Set CurrParamSettings = $($R0)
;
; Put up the adapter configuration dialog if necessary.
;
; Note that $(CurrParamSettings) has the old known parameter values.
;
adaptersetup = +
; Shell "" DebugConfiguration "before displaying dialog"
Set from = adapteroptions
adapteroptions = +
; ARE WE MCA
set EISABUS = FALSE
set MCABUS = FALSE
set ISABUS = TRUE
Debug-Output "Find MCA PHASE I Card."
set InfoList = {}
Shell $(UtilityInf), MCAFindBus, $(IRMAtrac_LOBYTE), $(IRMAtrac_HIBYTE)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
goto next_id
endif
ifstr $($R0) != "NO_ERROR"
set Error = $($R0)
goto next_id
endif
ifstr(i) $($R1) == {}
goto next_id
endif
set AdapterList = $($R1)
ForListDo $(AdapterList)
set BusNum = *($($),1)
set SlotNum = *($($),2)
set mcaid = *($($),3)
set InfoList = >($(InfoList),{$(SlotNum),$(mcaid)})
EndForListDo
goto found_mca
next_id = +
Debug-Output "Find MCA PHASE II Card."
Shell $(UtilityInf), MCAFindBus, $(IRMAtrac_PHASEII), $(IRMAtrac_HIBYTE)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
goto next_eisa
endif
ifstr $($R0) != "NO_ERROR"
set Error = $($R0)
goto next_eisa
endif
ifstr(i) $($R1) == {}
goto next_eisa
endif
set AdapterList = $($R1)
ForListDo $(AdapterList)
set BusNum = *($($),1)
set SlotNum = *($($),2)
set mcaid = *($($),3)
set InfoList = >($(InfoList),{$(SlotNum),$(mcaid)})
EndForListDo
goto found_mca
next_eisa = +
Shell $(UtilityInf), EISAFindBus, $(IRMAtrac_1BYTE)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
goto found_bus
endif
ifstr $($R0) != "NO_ERROR"
set Error = $($R0)
goto found_bus
endif
ifstr(i) $($R1) == {}
goto found_bus
endif
found_eisa =+
set ISABUS = FALSE
set EISABUS = TRUE
Debug-Output "Find EISA card."$($R1)
set AdapterList = $($R1)
; adapterlist returned by EISAFindBus
ForListDo $(AdapterList)
set BusNum = *($($),1)
set SlotNum = *($($),2)
Debug-Output "SLOTNUM:"*($($),2)
goto found_bus
found_mca = +
set MCABUS = TRUE
set ISABUS = FALSE
Debug-Output "Find MCA card."$(InfoList)
; DONE MCA
found_bus = +
ifstr(i) $(MCABUS) == TRUE
LoadLibrary "Disk 1" $(DialogDllMca) hLib
else-Ifstr(i) $(EISABUS) == TRUE
LoadLibrary "Disk 1" $(DialogDllMca) hLib
else
LoadLibrary "Disk 1" $(DialogDllName) hLib
endif
read-syms FileDependentDlg$(!STF_LANGUAGE)
SetHelpFile $(!STF_CWDDIR)irmatrac.hlp 6111 6111
Debug-Output "HELP FILE"$(!STF_CWDDIR)irmatrac.hlp
ui start "InputDlg" $(hLib)
set ExitButton = $(ButtonPressed)
FreeLibrary $(hLib)
ifstr(i) $(DLGEVENT) == "CONTINUE"
set IRQValueIndex = $(Combo5Out)
set IOBaseAddrIndex = $(Combo6Out)
set DmaChannelIndex = $(Combo7Out)
set BurstSizeIndex = $(Combo4Out)
set RecvListCountIndex = $(Combo2Out)
set XmitListCountIndex = $(Combo3Out)
set PacketsizeIndex = $(Combo1Out)
set NetworkAddress = *($(EditTextOut),1)
IfContains "1" IN $(RadioOut)
set EARLYRELEASE = 1
else-IfContains "2" IN $(RadioOut)
set EARLYRELEASE = 2
endif
IfContains "3" IN $(RadioOut)
set DATARATE = 4
else-IfContains "4" IN $(RadioOut)
set DATARATE = 16
endif
IfContains "5" IN $(RadioOut)
set CABLETYPE = 1
else-IfContains "6" IN $(RadioOut)
set CABLETYPE = 2
endif
ui pop 1
else-ifstr(i) $(DLGEVENT) == "EXIT"
set CommonStatus = STATUS_USERCANCEL
Debug-Output "Action: exit. Bye."
ui pop 1
goto end
else
;
; Unknow command
;
ui pop 1
Debug-Output "Action: unknown. Bye."
goto end
endif
;
; If installing, go create the necessary keys;
; if configuring, they're already open.
;
skipoptions =+
ifint $(OldVersionExisted) == $(TRUE)
ifstr(i) $(!NTN_InstallMode) == configure
goto writeparameters
endif
endif
StartWait
;
; Add Software Component
;
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 fatal
Else-Ifstr(i) $($R0) == STATUS_USERCANCEL
Goto successful
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 fatal
endif
endif
Shell $(UtilityInf), AddSoftwareComponent, $(Manufacturer), +
$(ProductSoftwareName), +
$(ProductSoftwareName), +
$(ProductSoftwareTitle), $(STF_CONTEXTINFNAME), +
$(ProductSoftwareImagePath), "kernel", "NDIS", {}, "",+
$(NetEventDLL)
Set OEM_ABANDON_SOFTWARE = TRUE
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "ShellCode error"
goto ShellCodeError
endif
;
; At this point:
; $R1 contains the product version key handle;
; $R2 contains the NetRules subkey handle;
; $R3 contains the new Services key handle; and
; $R4 contains the Parameters key
; $R5 contains the Linkage Key
;
set RegistryErrorIndex = $($R0)
set KeyProduct = $($R1)
Set SoftNetRulesKey = $($R2)
CloseRegKey $($R3)
CloseRegKey $($R4)
CloseRegKey $($R5)
Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
EndWait
Debug-Output "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 "ShellCode error."
goto ShellCodeError
endif
set RegistryErrorIndex = $($R0)
Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
EndWait
Debug-Output "Registry error: add value list."
CloseRegKey $(KeyProduct)
CloseRegKey $(SoftNetRulesKey)
goto fatalregistry
endif
set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareType)},+
{use,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareUse)}, +
{bindform,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareBindForm)}, +
{class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareClass)}, +
{bindable,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareBindable)}, +
{InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
Shell $(UtilityInf), AddValueList, $(SoftNetRulesKey), $(NewValueList)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "ShellCode error."
goto ShellCodeError
endif
set RegistryErrorIndex = $($R0)
CloseRegKey $(KeyProduct)
CloseRegKey $(SoftNetRulesKey)
Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
EndWait
Debug-Output "Resgitry error: add value list."
goto fatalregistry
endif
endif
;
; Create the HARDWARE\Netcard region and its corresponding service
;
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 "Cannot add hardware component"
goto ShellCodeError
endif
set RegistryErrorIndex = $($R0)
Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
EndWait
Debug-Output "Registry error: add hardware component"
CloseRegKey $($R1)
CloseRegKey $($R2)
CloseRegKey $($R3)
goto fatalregistry
endif
;
; At this point:
; $R1 Registry key variable for HARDWARE\Netcard\(n)
; $R2 Registry key variable for HARDWARE\Netcard\(n)\\NetRules
; $R3 Registry key handle for <service>\Parameters key
; $R4 Adapter number assigned to adapter
; $R5 Service name generated by combining svc name with adapter number
;
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 "ShellCode error"
goto ShellCodeError
endif
CloseRegKey $($R1)
set TempProdName = """"$(ProductHardwareName)$(AdapterNumber)""""
set TempBindForm = $(TempProdName)$(NetRuleHardwareBindForm)
set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleHardwareType)},+
{bindform,$(NoTitle),$(!REG_VT_SZ),$(TempBindForm)}, +
{class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleHardwareClass)}, +
{InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
Shell $(UtilityInf), AddValueList, $(KeyAdapterRules), $(NewValueList)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "ShellCode error."
goto ShellCodeError
endif
set RegistryErrorIndex = $($R0)
Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
EndWait
Debug-Output "Resgitry error: add value list."
CloseRegKey $(KeyParameters)
CloseRegKey $(KeyAdapterRules)
goto fatalregistry
endif
CloseRegKey $(KeyAdapterRules)
goto writeparameters
;
; REQUIRED: $(KeyParameters) contains service Parameters key handle
;
writeparameters = +
Shell $(UtilityInf), GetBusTypeNum
set BusTypeNum = $($R1)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "ShellCode error."
goto ShellCodeError
endif
set DmaChannelValue = *($(DmaChannelValues), ~($(DmaChannelList),$(DmaChannelIndex)))
set RecvListCountValue = *($(RecvListCountValues), ~($(RecvListCountList),$(RecvListCountIndex)))
set XmitListCountValue = *($(XmitListCountValues), ~($(XmitListCountList),$(XmitListCountIndex)))
set PacketsizeValue = *($(PacketsizeValues), ~($(PacketsizeList),$(PacketsizeIndex)))
set IRQValue = *($(IRQValues), ~($(IRQList),$(IRQValueIndex)))
set IOBaseAddrValue = *($(IOBaseAddrValues), ~($(IOBaseAddrList),$(IOBaseAddrIndex)))
set BurstSizeValue = *($(BurstSizeValues), ~($(BurstSizeList),$(BurstSizeIndex)))
set NetworkAddress = *($(EditTextOut),1)
Debug-Output "WRITE PARAMETERS"
ifstr(i) $(MCABUS) == TRUE
Ifstr $(AdapterNumber) == $(KeyNull)
; configure adapter not new installation
set NewValueList = {{NetworkAddress,$(NoTitle),$(!REG_VT_SZ),$(NetworkAddress)},+
{RECVBUFCOUNT, $(NoTitle),$(!REG_VT_DWORD),$(RecvListCountValue)},+
{MAXTRANSMITS, $(NoTitle),$(!REG_VT_DWORD),$(XmitListCountValue)},+
{EARLYRELEASE,$(NoTitle),$(!REG_VT_DWORD),$(EARLYRELEASE)},+
{MAXFRAMELEN, $(NoTitle),$(!REG_VT_DWORD),$(PacketsizeValue)}}
else
Debug-Output "Adapter number "$(AdapterNumber)
Set Indx = 0
ForListDo $(InfoList)
Debug-Output "InfoList-1"$(InfoList)
Set-add Indx = $(Indx),1
Debug-Output "InfoList"$(InfoList)
set SlotNum = *($($),1)
set mcaid = *($($),2)
Debug-Output "slot number "$(SlotNum)
Debug-Output "mca pos id "$(mcaid)
Ifint $(Indx) == $(AdapterNumber)
goto write_mca
endif
EndForListDo
write_mca=+
set NewValueList = {{NetworkAddress,$(NoTitle),$(!REG_VT_SZ),$(NetworkAddress)},+
{McaPosId,$(NoTitle),$(!REG_VT_DWORD),$(mcaid)},+
{SlotNumber,$(NoTitle),$(!REG_VT_DWORD),$(SlotNum)},+
{BUSTYPE,$(NoTitle),$(!REG_VT_DWORD),$(BusTypeNum)},+
{MediaType,$(NoTitle),$(!REG_VT_DWORD),2},+
{BusNumber,$(NoTitle),$(!REG_VT_DWORD),$(BusNum)},+
{RECVBUFCOUNT, $(NoTitle),$(!REG_VT_DWORD),$(RecvListCountValue)},+
{MAXTRANSMITS, $(NoTitle),$(!REG_VT_DWORD),$(XmitListCountValue)},+
{EARLYRELEASE,$(NoTitle),$(!REG_VT_DWORD),$(EARLYRELEASE)},+
{MAXFRAMELEN, $(NoTitle),$(!REG_VT_DWORD),$(PacketsizeValue)}}
Debug-Output "WRITE PARAMETERS -- MCA"
endif
endif
Ifstr(i) $(EISABUS) == TRUE
set NewValueList = {{NetworkAddress,$(NoTitle),$(!REG_VT_SZ),$(NetworkAddress)},+
{MediaType,$(NoTitle),$(!REG_VT_DWORD),2},+
{BusNumber,$(NoTitle),$(!REG_VT_DWORD),$(BusNum)},+
{BUSTYPE,$(NoTitle),$(!REG_VT_DWORD),$(BusTypeNum)},+
{SlotNumber,$(NoTitle),$(!REG_VT_DWORD),$(SlotNum)},+
{EISACompressedId,$(NoTitle),$(!REG_VT_DWORD),$(IRMAtrac_1BYTE)},+
{RECVBUFCOUNT, $(NoTitle),$(!REG_VT_DWORD),$(RecvListCountValue)},+
{MAXTRANSMITS, $(NoTitle),$(!REG_VT_DWORD),$(XmitListCountValue)},+
{EARLYRELEASE,$(NoTitle),$(!REG_VT_DWORD),$(EARLYRELEASE)},+
{MAXFRAMELEN, $(NoTitle),$(!REG_VT_DWORD),$(PacketsizeValue)}}
Debug-Output "WRITE PARAMETERS -- EISA"
endif
Ifstr(i) $(ISABUS) == TRUE
set NewValueList = {{INTERRUPT,$(NoTitle),$(!REG_VT_DWORD),$(IRQValue)},+
{IOADDRESS, $(NoTitle),$(!REG_VT_DWORD),$(IOBaseAddrValue)},+
{NetworkAddress,$(NoTitle),$(!REG_VT_SZ),$(NetworkAddress)},+
{MediaType,$(NoTitle),$(!REG_VT_DWORD),2},+
{BusNumber,$(NoTitle),$(!REG_VT_DWORD),$(BusNum)},+
{BUSTYPE,$(NoTitle),$(!REG_VT_DWORD),$(BusTypeNum)},+
{DMACHANNEL, $(NoTitle),$(!REG_VT_DWORD),$(DmaChannelValue)},+
{RECVBUFCOUNT, $(NoTitle),$(!REG_VT_DWORD),$(RecvListCountValue)},+
{BURSI, $(NoTitle),$(!REG_VT_DWORD),$(BurstSizeValue)},+
{MAXTRANSMITS, $(NoTitle),$(!REG_VT_DWORD),$(XmitListCountValue)},+
{MAXFRAMELEN, $(NoTitle),$(!REG_VT_DWORD),$(PacketsizeValue)},+
{EARLYRELEASE,$(NoTitle),$(!REG_VT_DWORD),$(EARLYRELEASE)},+
{DATARATE,$(NoTitle),$(!REG_VT_DWORD),$(DATARATE)},+
{CABLETYPE,$(NoTitle),$(!REG_VT_DWORD),$(CABLETYPE)}}
Debug-Output "WRITE PARAMETERS -- ISA"
endif
Shell $(UtilityInf), AddValueList, $(KeyParameters), $(NewValueList)
CloseRegKey $(KeyParameters)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "ShellCode error."
goto ShellCodeError
endif
set RegistryErrorIndex = $($R0)
Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
Debug-Output "Registry error: Add value list"
goto fatalregistry
endif
EndWait
goto successful
;-----------------------------------------------
; Binding section
;-----------------------------------------------
bindingadapter =+
set Error = "Binding: Sorry, not yet implemented."
goto fatal
;-----------------------------------------------
; Removeadapter section
;-----------------------------------------------
removeadapter = +
Ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
; Remove Software Component
Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
$(ProductSoftwareName)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "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 "ShellCode error"
goto ShellCodeError
endif
set RegistryErrorIndex = $($R0)
Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
goto fatalregistry
endif
endif
goto end
;-----------------------------------------------
; Upgrade Software section
;-----------------------------------------------
UpgradeSoftware = +
;
; First determine whether we want to do upgrade or update for software
; or hardware component. Then we will determine whether the Mode is
; update or upgrade.
;
; If the same version of the product existed in the registry, we do
; update. Otherwise, we will do a upgrade
;
ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
; Upgrade software component
;
; see whether the same version exist or not
;
OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
Ifstr $(KeyProduct) != $(KeyNull)
GetRegValue $(KeyProduct),"MajorVersion", VersionInfo
set Version = *($(VersionInfo), 4)
;
; Update the binaries
;
Shell $(UtilityInf), GetInfFileNameFromRegistry, $(KeyProduct)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "ShellCode error"
goto ShellCodeError
endif
set !UG_Filename = $($R0)
ifstr(i) $(!UG_Filename) != ""
install "Install-Update"
ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
goto fatal
endif
endif
; Upgrade the version number
;
SetRegValue $(KeyProduct) {MajorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMajorVersion)}
SetRegValue $(KeyProduct) {MinorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMinorVersion)}
;
; do nothing for update
;
ifint $(Version) != $(ProductVersion)
;
; If the major version number is not the same,
; it is major upgrade. So let Upgrade the product
;
;
; make other upgrade change if necessary
;
endif
CloseRegKey $(KeyProduct)
else
;
; Cannot Open software key, goto ERROR
;
goto fatalregistry
endif
else
;
; upgrade/update hardware component
; There is no different between upgrade and update for hardware
; component
;
; 1. Get the Service Name
; 2. Change the NetRule section if necessary
;
OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_RegBase) +
$(MAXIMUM_ALLOWED) NetworkCardKey
Ifstr(i) $(NetworkCardKey) != $(KeyNull)
;
; Get Service name
;
GetRegValue $(NetworkCardKey),"ServiceName", ServiceNameInfo
set ServiceName = *($(ServiceNameInfo), 4)
;
; Change the NetRule if necessary
;
OpenRegKey $(NetworkCardKey) "" "NetRules" +
$(MAXIMUM_ALLOWED) NetRuleKey
Ifstr(i) $(NetRuleKey) != $(KeyNull)
;
; Make the change....
;
else
;
; Error, cannot open net rules key
;
goto fatalregistry
endif
CloseRegKey $(NetRules)
CloseRegKey $(NetworkCardKey)
else
;
; Error, cannot open network card key
;
goto fatalregistry
endif
;
; 3. Change the service section of the hardware. i.e.,
; ParameterName change, value change, etc.
;
OpenRegKey $(!REG_H_LOCAL) "" +
$(!NTN_ServiceBase)"\"$(ServiceName) +
$(MAXIMUM_ALLOWED) ServiceKey
Ifstr(i) $(ServiceKey) != $(KeyNull)
;
; Get the ServiceKey to change the Start value
; or Type value. Or open Parameters key to
; change the hardware parameters if necessary.
;
CloseRegKey $(ServiceKey)
else
;
; Error, cannot open network card key
;
goto fatalregistry
endif
endif
goto end
;
; End of Upgrade Software
;
;
; Escape hatches
;
successful = +
goto end
abandon = +
ForListDo $(OEM_ABANDON_OPTIONS)
Shell $(UtilityInf), RemoveHardwareComponent, $(Manufacturer), +
$(ProductSoftwareName), $($)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "ShellCode error"
goto ShellCodeError
endif
set RegistryErrorIndex = $($R0)
Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
goto fatalregistry
endif
EndForListDo
Ifstr(i) $(OEM_ABANDON_SOFTWARE) == TRUE
; Remove Software Component
Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
$(ProductSoftwareName), FALSE
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "ShellCode error"
goto ShellCodeError
endif
set RegistryErrorIndex = $($R0)
Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
goto fatalregistry
endif
endif
goto end
;
; warning display
;
warning = +
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)
else
goto "end"
endif
;
; non fatal error display
;
nonfatalinfo = +
Set Severity = STATUS
Set CommonStatus = STATUS_USERCANCEL
goto nonfatalmsg
nonfatal = +
Set Severity = NONFATAL
goto nonfatalmsg
nonfatalmsg = +
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)
else
goto "end"
endif
;
; Registry is broken
;
fatalregistry = +
Shell $(UtilityInf) RegistryErrorString $(RegistryErrorIndex)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
goto ShellCodeError
endif
set Error = $($R0)
goto fatal
;
; Netcard detection failure
;
fataldetect = +
Shell $(UtilityInf),RegistryErrorString,CANNOT_DETECT
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "ShellCode error: cannot get an error string."
goto ShellCodeError
endif
set Error = $($R0)
Goto fatal
;
; fatal error display
;
fatal = +
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
;
; Shelling error
;
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
;
; if OEM_ABANDON_ON == TRUE, then remove the registry entries
;
ifstr(i) $(OEM_ABANDON_ON) == TRUE
set OEM_ABANDON_ON = FALSE
goto abandon
endif
goto end
end = +
goto term
term = +
Return $(CommonStatus)
[DebugConfiguration]
Set InfName = "OEMSETUP.INF"
return
;***************************************************************
; INSTALL SECTIONS
;***************************************************************
[Install-Option]
set STF_VITAL = ""
ifstr(i) $(AddCopy) == "YES"
;
; Add the files to the copy list
;
; BUGBUG: eliminate the "nt2" in the next line when Sunil fixes
; the other INF files
;
AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
endif
ifstr(i) $(DoCopy) == "YES"
;
; Copy files in the copy list
;
set !STF_NCPA_FLUSH_COPYLIST = TRUE
CopyFilesInCopyList
endif
Exit
[Install-Update]
set STF_VITAL = ""
set STF_OVERWRITE = "VERIFYSOURCEOLDER"
;set STF_VERSION = "YES"
AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
AddSectionFilesToCopyList Files-MCA $(SrcDir) $(!STF_WINDOWSSYSPATH)
AddSectionFilesToCopyList Files-Dll $(SrcDir) $(!STF_WINDOWSSYSPATH)
AddSectionFilesToCopyList Files-Inf $(SrcDir) $(!STF_WINDOWSSYSPATH)
set !STF_NCPA_FLUSH_COPYLIST = TRUE
CopyFilesInCopyList
exit
[Install-Dll]
set STF_VITAL = ""
AddSectionFilesToCopyList Files-HLP $(SrcDir) $(!STF_WINDOWSSYSPATH)
AddSectionFilesToCopyList Files-MCA $(SrcDir) $(!STF_WINDOWSSYSPATH)
AddSectionFilesToCopyList Files-Dll $(SrcDir) $(!STF_WINDOWSSYSPATH)
set !STF_NCPA_FLUSH_COPYLIST = TRUE
CopyFilesInCopyList
exit
[Source Media Descriptions]
1 = "DCA IRMAtrac Driver Disk"
[ProductType]
STF_PRODUCT = Winnt
STF_PLATFORM = I386
[Files-Inf]
1, oemsetup.inf, SIZE=1000, RENAME=$(!UG_Filename)
[Files-IRMAtrac]
1, IRMAtrac.SYS , SIZE=88888
1, dcamac.bin, SIZE=54034
[Files-Dll]
1, irmaisa.dll, SIZE=999
[Files-MCA]
1, irmamca.dll, SIZE=999
[Files-HLP]
1, irmatrac.hlp, SIZE=999
[LanguagesSupported]
ENG
[OptionsTextENG]
IRMAtrac = "DCA IRMAtrac Token-Ring Adapter"
[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:"
FunctionTitle = $(GenericAdapterName)" Setup"$(GenericInfVersion)
ProductSoftwareDescription = $(GenericDriverName)
ProductHardwareDescription = $(GenericAdapterName)
ProductSoftwareTitle = $(GenericDriverName)
ProductHardwareTitle = $(GenericAdapterName)
DialogDllName = "irmaisa.dll"
DialogDllMca = "irmamca.dll"
IRQList = ^(IRQChoices, 1)
IRQValues = ^(IRQChoices, 2)
IOBaseAddrList = ^(IOBaseAddrChoices, 1)
IOBaseAddrValues = ^(IOBaseAddrChoices, 2)
DmaChannelList = ^(DmaChannelChoices,1)
DmaChannelValues = ^(DmaChannelChoices,2)
BurstSizeList = ^(BurstSizeChoices, 1)
BurstSizeValues = ^(BurstSizeChoices, 2)
RecvListCountList = ^(RecvListCountChoices,1)
RecvListCountValues = ^(RecvListCountChoices,2)
XmitListCountList = ^(XmitListCountChoices,1)
XmitListCountValues = ^(XmitListCountChoices,2)
PacketsizeList = ^(PacketsizeChoices,1)
PacketsizeValues = ^(PacketsizeChoices,2)
[DialogConstantsENG]
Help = "&Help"
Exit = "Cancel"
OK = "OK"
HelpContext = ""
Continue = "Con&tinue"
Cancel = "Cancel"
[FileDependentDlgENG]
DlgText = "Please select values for the follwing fields:"
HelpContext = 6111
DlgType = "RadioCombination"
DlgTemplate = "PCNET"
Caption = $(FunctionTitle)
CBOptionsGreyed = {}
NotifyFields = {NO, NO}
Edit1Label = "Network &Address:"
EditTextLim = 12
EditTextIn = $(NetworkAddress)
Combo5Label = "&IRQ Level:"
Combo6Label = "I/&O Base Addr:"
Combo7Label = "&Dma Channel:"
Combo4Label = "&BURST Size:"
Combo2Label = "&Receive List:"
Combo3Label = "&Xmit List:"
Combo1Label = "&Max Frame Size:"
Group3 = "Cable &Type"
Radio5 = "&UTP"
Radio6 = "&STP"
Group2 = "Ring S&peed"
Radio3 = "&4"
Radio4 = "&16"
Group1 = "&Early Release"
Radio1 = "O&n"
Radio2 = "O&ff"
Combo5List = $(IRQList)
Combo5Out = $(IRQValue)
Combo6List = $(IOBaseAddrList)
Combo6Out = $(IOBaseAddrValue)
Combo7List = $(DmaChannelList)
Combo7Out = $(DmaChannelValue)
Combo4List = $(BurstSizeList)
Combo4Out = $(BurstSizeValue)
Combo2List = $(RecvListCountList)
Combo2Out = $(RecvListCountValue)
Combo3List = $(XmitListCountList)
Combo3Out = $(XmitListCountValue)
Combo1List = $(PacketsizeList)
Combo1Out = $(PacketsizeValue)
ComboListItemsIn = {Combo1List, Combo2List, Combo3List, Combo4List, Combo5List, Combo6List, Combo7List}
ComboListItemsOut = {Combo1Out, Combo2Out, Combo3Out, Combo4Out, Combo5Out, Combo6Out, Combo7Out}
CBOptionsGreyed = {}
;RadioOptionGreyed = {}
NotifyFields = {NO, NO}
;***********************************************************************
; CONSTANTS FOR USING DIALOGS
;***********************************************************************
[IRQChoices]
IRQ_2 = "2",2
IRQ_3 = "3",3
IRQ_4 = "4",4
IRQ_5 = "5",5
IRQ_6 = "6",6
IRQ_7 = "7",7
IRQ_10 = "10",10
IRQ_11 = "11",11
[IOBaseAddrChoices]
IOAddr_1 = "0A00",2560
IOAddr_2 = "0A20",2592
IOAddr_3 = "0A40",2624
IOAddr_4 = "0A60",2656
IOAddr_5 = "1A00",6656
IOAddr_6 = "1A20",6688
IOAddr_7 = "1A40",6720
IOAddr_8 = "1A60",6752
[DmaChannelChoices]
Dma_3 = "03",3
Dma_5 = "05",5
Dma_6 = "06",6
Dma_7 = "07",7
Dma_17 = "PIO",0
[BurstSizeChoices]
BurstSize_1 = "DEFAULT",0
BurstSize_2 = "2",2
BurstSize_3 = "4",4
BurstSize_4 = "6",6
BurstSize_5 = "8",8
BurstSize_6 = "10",10
BurstSize_7 = "12",12
[RecvListCountChoices]
RecvListCount_1 = "2",2
RecvListCount_2 = "3",3
RecvListCount_3 = "6",6
RecvListCount_4 = "8",8
RecvListCount_5 = "12",12
RecvListCount_6 = "16",16
RecvListCount_7 = "24",24
RecvListCount_8 = "32",32
[XmitListCountChoices]
XmitListCount_1 = "16",16
XmitListCount_2 = "24",24
XmitListCount_3 = "32",32
XmitListCount_4 = "40",40
XmitListCount_5 = "48",48
XmitListCount_6 = "56",56
XmitListCount_7 = "64",64
[PacketsizeChoices]
Packetsize_1 = "2048",2048
Packetsize_2 = "4096",4096
Packetsize_3 = "4500",4500
Packetsize_4 = "8192",8192
Packetsize_5 = "16384",16384
Packetsize_6 = "18000",18000