Annotation of ntddk/src/network/tdi/oemnxpts.inf, revision 1.1.1.1

1.1       root        1: [Identification]
                      2:     OptionType = NetTransport
                      3: [Options]
                      4:     ST
                      5: [FileConstants]
                      6: UtilityInf      = "UTILITY.INF"
                      7: subroutineinf   = "SUBROUTN.INF"
                      8: SoftwareType    = "transport"
                      9: Exit_Code       = 0
                     10: NetEventDLL     = "%SystemRoot%\System32\netevent.dll"
                     11: Manufacturer    = "Microsoft"
                     12: ProductMajorVersion     = "3"
                     13: ProductMinorVersion     = "1"
                     14: ProductVersion  = $(ProductMajorVersion)"."$(ProductMinorVersion)
                     15: ProductSoftwareName     = "St"
                     16: ProductSoftwareImagePath = "\SystemRoot\System32\drivers\st.sys"
                     17: NetRuleSoftwareType     = "st netBiosTransport"
                     18: NetRuleSoftwareClass    = {"netBiosTransport"}
                     19: NetRuleSoftwareUse      = $(SoftwareType)" yes yes"
                     20: NetRuleSoftwareBindForm = """St"" yes yes simple"
                     21: ProductKeyName  = $(!NTN_SoftwareBase)"\"$(Manufacturer)"\"$(ProductSoftwareName)"\CurrentVersion"
                     22: ParamKeyName    = $(!NTN_ServiceBase)"\"$(ProductSoftwareName)"\Parameters"
                     23: [GeneralConstants]
                     24: from      = ""
                     25: to        = ""
                     26: ExitCodeOk     = 0
                     27: ExitCodeCancel = 1
                     28: ExitCodeFatal  = 2
                     29: KeyNull         = ""
                     30: MAXIMUM_ALLOWED   = 33554432
                     31: RegistryErrorIndex = NO_ERROR
                     32: KeyProduct      = ""
                     33: KeyParameters   = ""
                     34: TRUE            = 1
                     35: FALSE           = 0
                     36: NoTitle            = 0
                     37: ExitState   = "Active"
                     38: OldVersionExisted = $(FALSE)
                     39: DriverPath      = $(!STF_NTPATH)\drivers
                     40: [date]
                     41:     Now = {} ? $(!LIBHANDLE) GetSystemDate
                     42: [Identify]
                     43:     read-syms Identification
                     44:     set Status     = STATUS_SUCCESSFUL
                     45:     set Identifier = $(OptionType)
                     46:     set Media      = #("Source Media Descriptions", 1, 1)
                     47:     Return $(Status) $(Identifier) $(Media)
                     48: [ReturnOptions]
                     49:     set Status        = STATUS_FAILED
                     50:     set OptionList     = {}
                     51:     set OptionTextList = {}
                     52:     set LanguageList = ^(LanguagesSupported, 1)
                     53:     Ifcontains(i) $($0) in $(LanguageList)
                     54:         goto returnoptions
                     55:     else
                     56:         set Status = STATUS_NOLANGUAGE
                     57:         goto finish_ReturnOptions
                     58:     endif
                     59: returnoptions = +
                     60:     set OptionList     = ^(Options, 1)
                     61:     set OptionTextList = ^(OptionsText$($0), 1)
                     62:     set Status         = STATUS_SUCCESSFUL
                     63: finish_ReturnOptions = +
                     64:     Return $(Status) $(OptionList) $(OptionTextList)
                     65: [InstallOption]
                     66:     set Option   = $($1)
                     67:     set SrcDir   = $($2)
                     68:     set AddCopy  = $($3)
                     69:     set DoCopy   = $($4)
                     70:     set DoConfig = $($5)
                     71:     set LanguageList = ^(LanguagesSupported, 1)
                     72:     Ifcontains(i) $($0) NOT-IN $(LanguageList)
                     73:         Return STATUS_NOLANGUAGE
                     74:     endif
                     75:     Debug-Output "OEMNXPNB.INF: STF_CWDDIR is: "$(!STF_CWDDIR)
                     76:     Debug-Output "OEMNXPNB.INF: STF_LANGUAGE is: "$(!STF_LANGUAGE)
                     77:     set-subst LF = "\n"
                     78:     read-syms GeneralConstants
                     79:     read-syms FileConstants
                     80:     read-syms DialogConstants$(!STF_LANGUAGE)
                     81:     ifstr(i) $(!NTN_Origination) == "NCPA"
                     82:         set Continue = $(OK)
                     83:     endif
                     84:     read-syms FileConstants$(!STF_LANGUAGE)
                     85:     detect date
                     86:     set-title  $(FunctionTitle)
                     87:     set to   = Begin
                     88:     set from = Begin
                     89:     set CommonStatus = STATUS_SUCCESSFUL
                     90:     EndWait
                     91: Begin = +
                     92:     Ifstr(i) $(!NTN_InstallMode) == deinstall
                     93:         set StartLabel = removeadapter
                     94:     else-Ifstr(i) $(!NTN_InstallMode) == Update
                     95:         set StartLabel = UpgradeSoftware
                     96:     else-Ifstr(i) $(!NTN_InstallMode) == bind
                     97:         set StartLabel = bindingadapter
                     98:     else-Ifstr(i) $(!NTN_InstallMode) == configure
                     99:         Shell $(UtilityInf),RegistryErrorString,CANNOT_CONFIGURE_SOFTWARE
                    100:         ifint $($ShellCode) != $(!SHELL_CODE_OK)
                    101:             Debug-Output "OEMNXPNB.INF: ShellCode error: cannot get an error string."
                    102:             goto ShellCodeError
                    103:         endif
                    104:         set Error = $($R0)
                    105:         set from = end
                    106:         set to = end
                    107:         goto nonfatalinfo
                    108:     else
                    109:         set StartLabel = installadapter
                    110:     endif
                    111:     set RadioDefault = 2
                    112:     set RadioIn = {$(RadioDefault)}
                    113:     set Size = 2
                    114:     set from = $(fatal)
                    115:     set to = $(fatal)
                    116:     goto $(StartLabel)
                    117: installadapter = +
                    118:     OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
                    119:     Ifstr $(KeyProduct) != $(KeyNull)
                    120:         CloseRegKey $(KeyProduct)
                    121:         Shell $(UtilityInf), VerExistedDlg, $(ProductSoftwareTitle),+
                    122:             $(ProductVersion)
                    123:         ifint $($ShellCode) != $(!SHELL_CODE_OK)
                    124:             Debug-Output "ShellCode error: cannot get an error string."
                    125:             goto ShellCodeError
                    126:         endif
                    127:         goto end
                    128:     endif
                    129:     CloseRegKey $(KeyProduct)
                    130:     goto installproduct
                    131: installproduct = +
                    132:     StartWait
                    133:     ifint $(OldVersionExisted) == $(FALSE)
                    134:         Ifstr(i) $(DoCopy) == "YES"
                    135:            Shell $(UtilityInf), DoAskSource, $(!STF_CWDDIR), $(SrcDir) YES
                    136:            Ifint $($ShellCode) != $(!SHELL_CODE_OK)
                    137:                Goto ShellCodeError
                    138:            Else-Ifstr(i) $($R0) == STATUS_FAILED
                    139:                Shell $(UtilityInf) RegistryErrorString "ASK_SOURCE_FAIL"
                    140:                ifint $($ShellCode) != $(!SHELL_CODE_OK)
                    141:                    goto ShellCodeError
                    142:                endif
                    143:                set Error = $($R0)
                    144:                Goto fatal
                    145:            Else-Ifstr(i) $($R0) == STATUS_USERCANCEL
                    146:                Goto successful
                    147:            Endif
                    148:            Set SrcDir = $($R1)
                    149:         Endif
                    150:         install "Install-Option"
                    151:         ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
                    152:            Shell $(UtilityInf) RegistryErrorString "UNABLE_COPY_FILE"
                    153:            ifint $($ShellCode) != $(!SHELL_CODE_OK)
                    154:                goto ShellCodeError
                    155:            endif
                    156:            set Error = $($R0)
                    157:            goto fatal
                    158:         endif
                    159:         set OEM_ABANDON_ON = TRUE
                    160:         Shell $(UtilityInf), AddSoftwareComponent, $(Manufacturer), +
                    161:             $(ProductSoftwareName), +
                    162:             $(ProductSoftwareName), +
                    163:             $(ProductSoftwareDisplayName), $(STF_CONTEXTINFNAME), +
                    164:             $(ProductSoftwareImagePath), "kernel", "TDI", {}, "",+
                    165:             $(NetEventDLL)
                    166:         set RegistryErrorIndex = $($R0)
                    167:         Ifstr(i) $(RegistryErrorIndex) !=  NO_ERROR
                    168:             EndWait
                    169:             CloseRegKey $($R1)
                    170:             CloseRegKey $($R2)
                    171:             CloseRegKey $($R3)
                    172:             CloseRegKey $($R4)
                    173:             CloseRegKey $($R5)
                    174:             goto fatalRegistry
                    175:         endif
                    176:         Set SoftProductKey      = $($R1)
                    177:         Set SoftNetRuleKey      = $($R2)
                    178:         Set SoftServiceKey      = $($R3)
                    179:         set KeyParameters       = $($R4)
                    180:         Set SoftLinkageKey      = $($R5)
                    181:         set NewValueList = {{SoftwareType,$(NoTitle),$(!REG_VT_SZ),$(SoftwareType)},+
                    182:                            {MajorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMajorVersion)},+
                    183:                            {MinorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMinorVersion)},+
                    184:                            {Title,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareTitle)},+
                    185:                            {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareDescription)},+
                    186:                            {ServiceName,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareName)},+
                    187:                            {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
                    188:         Shell  $(UtilityInf), AddValueList, $(SoftProductKey), $(NewValueList)
                    189:         set RegistryErrorIndex = $($R0)
                    190:         Ifstr $(RegistryErrorIndex) != NO_ERROR
                    191:             CloseRegKey $(SoftProductKey)
                    192:             CloseRegKey $(SoftNetRuleKey)
                    193:             CloseRegKey $(SoftServiceKey)
                    194:             CloseRegKey $(SoftLinkageKey)
                    195:             CloseRegKey $(KeyParameters)
                    196:             goto fatalRegistry
                    197:         endif
                    198:         set NewValueList = {{type    ,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareType)}, +
                    199:                             {use     ,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareUse)}, +
                    200:                             {class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareClass)}, +
                    201:                             {bindform,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareBindForm)}, +
                    202:                             {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
                    203:         Shell  $(UtilityInf), AddValueList, $(SoftNetRuleKey), $(NewValueList)
                    204:         set RegistryErrorIndex = $($R0)
                    205:         Ifstr $(RegistryErrorIndex) != NO_ERROR
                    206:             CloseRegKey $(SoftProductKey)
                    207:             CloseRegKey $(SoftNetRuleKey)
                    208:             CloseRegKey $(SoftServiceKey)
                    209:             CloseRegKey $(SoftLinkageKey)
                    210:             CloseRegKey $(KeyParameters)
                    211:             goto fatalRegistry
                    212:         endif
                    213:         Set NewValueList = {{NbProvider,$(NoTitle),$(!REG_VT_SZ),"_nb"}}
                    214:         Shell  $(UtilityInf), AddValueList, $(KeyParameters), $(NewValueList)
                    215:         Ifstr $(RegistryErrorIndex) != NO_ERROR
                    216:             CloseRegKey $(SoftProductKey)
                    217:             CloseRegKey $(SoftNetRuleKey)
                    218:             CloseRegKey $(SoftServiceKey)
                    219:             CloseRegKey $(SoftLinkageKey)
                    220:             goto fatalRegistry
                    221:         endif
                    222:         CreateRegKey $(SoftServiceKey) {"Performance",$(NoTitle),GenericClass} "" +
                    223:                 $(MAXIMUM_ALLOWED) "" KeyPerformance
                    224:         set NewValueList = {{Library,$(NoTitle),$(!REG_VT_SZ),"Perfctrs.dll"},+
                    225:                            {Open,$(NoTitle),$(!REG_VT_SZ),"OpenNbfPerformanceData"},+
                    226:                            {Collect,$(NoTitle),$(!REG_VT_SZ),"CollectNbfPerformanceData"},+
                    227:                            {Close,$(NoTitle),$(!REG_VT_SZ),"CloseNbfPerformanceData"}}
                    228:         Shell  $(UtilityInf), AddValueList, $(KeyPerformance), $(NewValueList)
                    229:         set RegistryErrorIndex = $($R0)
                    230:         Ifstr $(RegistryErrorIndex) != NO_ERROR
                    231:             CloseRegKey $(SoftProductKey)
                    232:             CloseRegKey $(SoftNetRuleKey)
                    233:             CloseRegKey $(SoftServiceKey)
                    234:             CloseRegKey $(SoftLinkageKey)
                    235:             CloseRegKey $(KeyParameters)
                    236:             goto fatalRegistry
                    237:         endif
                    238:         CloseRegKey $(KeyPerformance)
                    239:         CloseRegKey $(SoftProductKey)
                    240:         CloseRegKey $(SoftNetRuleKey)
                    241:         CloseRegKey $(SoftServiceKey)
                    242:         CloseRegKey $(SoftLinkageKey)
                    243:     endif
                    244:     goto writeparameters
                    245: writeparameters = +
                    246:     set NewValueList = {{Size,$(NoTitle),$(!REG_VT_DWORD),$(Size)}}
                    247:     ifint $(OldVersionExisted) == $(TRUE)
                    248:         OpenRegKey $(!REG_H_LOCAL) "" $(ParamKeyName) $(MAXIMUM_ALLOWED) KeyParameters
                    249:     endif
                    250:     Shell  $(UtilityInf), AddValueList, $(KeyParameters), $(NewValueList)
                    251:     set RegistryErrorIndex = $($R0)
                    252:     CloseRegKey $(KeyParameters)
                    253:     Ifstr(i) $(RegistryErrorIndex) !=  NO_ERROR
                    254:         goto fatalRegistry
                    255:     endif
                    256:     EndWait
                    257:     goto successful
                    258: bindingadapter =+
                    259:     set Error = "Binding: Sorry, not yet implemented."
                    260:     goto fatal
                    261: removeadapter = +
                    262:     Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
                    263:         $(ProductSoftwareName)
                    264:     ifint $($ShellCode) != $(!SHELL_CODE_OK)
                    265:         Debug-Output "ShellCode error"
                    266:         goto ShellCodeError
                    267:     endif
                    268:     set RegistryErrorIndex = $($R0)
                    269:     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
                    270:         goto fatalregistry
                    271:     endif
                    272:     goto end
                    273: UpgradeSoftware = +
                    274:     ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
                    275:         OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
                    276:         Ifstr $(KeyProduct) != $(KeyNull)
                    277:             GetRegValue $(KeyProduct),"MajorVersion", VersionInfo
                    278:             set Version = *($(VersionInfo), 4)
                    279:             Shell $(UtilityInf), GetInfFileNameFromRegistry, $(KeyProduct)
                    280:             ifint $($ShellCode) != $(!SHELL_CODE_OK)
                    281:                 Debug-Output "ShellCode error"
                    282:                 goto ShellCodeError
                    283:             endif
                    284:             set !UG_Filename = $($R0)
                    285:             ifstr(i) $(!UG_Filename) != ""
                    286:                 install "Install-Update"
                    287:                 ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
                    288:                     goto fatal
                    289:                 endif
                    290:             endif
                    291:             SetRegValue $(KeyProduct) {MajorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMajorVersion)}
                    292:             SetRegValue $(KeyProduct) {MinorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMinorVersion)}
                    293:             ifint $(Version) != $(ProductVersion)
                    294:             endif
                    295:             CloseRegKey $(KeyProduct)
                    296:         else
                    297:             goto fatalregistry
                    298:         endif
                    299:     endif
                    300:     goto end
                    301: successful = +
                    302:     goto end
                    303: warning = +
                    304:     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "WARNING", $(Error)
                    305:     ifint $($ShellCode) != $(!SHELL_CODE_OK)
                    306:         goto ShellCodeError
                    307:     endif
                    308:     ifstr(i) $($R1) == "OK"
                    309:         goto $(to)
                    310:     else-ifstr(i) $($R1) == "CANCEL"
                    311:         goto $(from)
                    312:     else
                    313:         goto "end"
                    314:     endif
                    315: nonfatalinfo = +
                    316:     Set CommonStatus = STATUS_USERCANCEL
                    317:     Set Severity = STATUS
                    318:     goto nonfatalmsg
                    319: nonfatal = +
                    320:     Set Severity = NONFATAL
                    321:     goto nonfatalmsg
                    322: nonfatalmsg = +
                    323:     ifstr(i) $(Error) == ""
                    324:         Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
                    325:         ifint $($ShellCode) != $(!SHELL_CODE_OK)
                    326:             goto ShellCodeError
                    327:         endif
                    328:         set Error = $($R0)
                    329:     endif
                    330:     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), $(Severity), $(Error)
                    331:     ifint $($ShellCode) != $(!SHELL_CODE_OK)
                    332:         goto ShellCodeError
                    333:     endif
                    334:     ifstr(i) $($R1) == "OK"
                    335:         goto $(from)
                    336:     else
                    337:         goto "end"
                    338:     endif
                    339: fatalregistry = +
                    340:     Shell $(UtilityInf) RegistryErrorString $(RegistryErrorIndex)
                    341:     ifint $($ShellCode) != $(!SHELL_CODE_OK)
                    342:         goto ShellCodeError
                    343:     endif
                    344:     set Error = $($R0)
                    345:     goto fatal
                    346: fatal = +
                    347:     ifstr(i) $(Error) == ""
                    348:         Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
                    349:         ifint $($ShellCode) != $(!SHELL_CODE_OK)
                    350:             goto ShellCodeError
                    351:         endif
                    352:         set Error = $($R0)
                    353:     endif
                    354:     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "FATAL", $(Error)
                    355:     ifint $($ShellCode) != $(!SHELL_CODE_OK)
                    356:         goto ShellCodeError
                    357:     endif
                    358:     goto setfailed
                    359: ShellCodeError = +
                    360:     set DlgType      = "MessageBox"
                    361:     set STF_MB_TITLE = $(ShellCodeErrorTitle)
                    362:     set STF_MB_TEXT  = $(ShellCodeErrorText)
                    363:     set STF_MB_TYPE  = 1
                    364:     set STF_MB_ICON  = 3
                    365:     set STF_MB_DEF   = 1
                    366:     ui start "Error Message"
                    367:     goto setfailed
                    368: setfailed = +
                    369:     set CommonStatus = STATUS_FAILED
                    370:     ifstr(i) $(OEM_ABANDON_ON) == TRUE
                    371:         set OEM_ABANDON_ON = FALSE
                    372:         goto removeadapter
                    373:     endif
                    374:     goto end
                    375: end = +
                    376:     goto term
                    377: term = +
                    378:     Return $(CommonStatus)
                    379: [Install-Option]
                    380:     set STF_VITAL = ""
                    381:     ifstr(i) $(AddCopy) == "YES"
                    382:         AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
                    383:     endif
                    384:     ifstr(i) $(DoCopy) == "YES"
                    385:        set !STF_NCPA_FLUSH_COPYLIST = TRUE
                    386:        CopyFilesInCopyList
                    387:     endif
                    388:     ifstr(i) $(DoConfig) == "YES"
                    389:     endif
                    390:     Exit
                    391: [Install-Update]
                    392:    set STF_VITAL        = ""
                    393:    set STF_OVERWRITE    = "VERIFYSOURCEOLDER"
                    394:    AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
                    395:    AddSectionFilesToCopyList Files-Inf $(SrcDir) $(!STF_WINDOWSSYSPATH)
                    396:    set !STF_NCPA_FLUSH_COPYLIST = TRUE
                    397:    CopyFilesInCopyList
                    398:    exit
                    399: [Source Media Descriptions]
                    400:     1  = "Windows NT Setup Disk #1"  , TAGFILE = disk1
                    401:     2  = "Windows NT Setup CD-ROM Disk"  , TAGFILE = disk2
                    402: [ProductType]
                    403: STF_PRODUCT  = Winnt
                    404: STF_PLATFORM = Mips
                    405: [Files-Inf]
                    406: 2,     oemsetup.inf,    SIZE=1000,     RENAME=$(!UG_Filename)
                    407: [Files-ST]
                    408: 2,ST.SYS , SIZE=88888
                    409: [LanguagesSupported]
                    410:     ENG
                    411: [OptionsTextENG]
                    412:     ST     = "Sample Transport"
                    413: [FileConstantsENG]
                    414: ProCaption   = "Windows NT Setup"
                    415: ProCancel    = "Cancel"
                    416: ProCancelMsg = "Windows NT Networking is not correctly installed.  "+
                    417:                "Are you sure you want to cancel copying files?"
                    418: ProCancelCap = "Network Setup Message"
                    419: ProText1     = "Copying:"
                    420: ProText2     = "To:"
                    421: FunctionTitle   = "Sample Transport"
                    422: ProductSoftwareDescription      = "Microsoft Sample TDI Transport"
                    423: ProductSoftwareDisplayName = "Sample Transport"
                    424: ProductSoftwareTitle    = "Sample Transport"
                    425: ShellCodeErrorTitle     = "Error: "$(FunctionTitle)
                    426: ShellCodeErrorText      = "Shell Code Error."
                    427: [DialogConstantsENG]
                    428: Help        = "&Help"
                    429: Exit        = "Cancel"
                    430: OK          = "OK"
                    431: HelpContext = ""
                    432: Continue    = "Continue"
                    433: Cancel      = "Cancel"
                    434: [FileDependentDlgENG]
                    435: GroupLabel = "Optimization:"
                    436: Radio1 = "&Minimize Memory Used"
                    437: Radio2 = "&Balance"
                    438: Radio3 = "M&aximize Throughput && Connections"
                    439: DlgType = "Radio"
                    440: DlgTemplate = "ST"
                    441: Caption = $(FunctionTitle)
                    442: OptionsGreyed = {}
                    443: HelpContext = $(!IDH_DB_OEMNXPNB_INS)
                    444: 
                    445: 
                    446: 

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.