Реферат: Конфигурация аппаратных средств персонального компьютера
On Error GoTo NoDev
DDesc$ = HV1.RegCtrl1.RReadValue(HK$, SubK$, "DriverDesc")
On Error GoTo 0
If i = 0 Then
DD$ = " "
Call GroupDev(FClass, DD$, "")
SubK$ = "System\CurrentControlSet\Services\Class\" + FClass
DD$ = HV1.RegCtrl1.RReadValue(HK$, SubK$, "")
Call GroupDev(FClass, DD$, "")
DD$ = String(70, "-")
Call GroupDev(FClass, DD$, "")
End If
If DDesc$ <> "Coprocessor" And DDesc$ <> "Сопроцессор" Then Call GroupDev(FClass, DDesc$, Num$) Else Coproc = True
NoDev: If Err <> 0 Then Exit For
Next i
Err.Clear
End Sub
Sub GroupDev(DClass, DDsc, Nm As String)
If DClass = "System" Or DClass = "fdc" Or DClass = "hdc" Or DClass = "Infrared" Then k0 = k0 + 1: Sv(0, k0) = DDsc: Exit Sub
If DClass = "MTD" Or DClass = "MultiFunction" Or DClass = "PCMCIA" Or DClass = "Ports" Then k0 = k0 + 1: Sv(0, k0) = DDsc: Exit Sub
If DClass = "USB" Then k0 = k0 + 1: Sv(0, k0) = DDsc: Exit Sub
If DClass = "Monitor" Or DClass = "Keyboard" Or DClass = "Mouse" Or DClass = "Printer" Then k1 = k1 + 1: Sv(1, k1) = DDsc: Exit Sub
SubK$ = "System\CurrentControlSet\Services\Class\" + DClass + Nm
On Error GoTo NoMD
MDId$ = HV1.RegCtrl1.RReadValue("HKEY_LOCAL_MACHINE", SubK$, "MatchingDeviceId")
On Error GoTo 0
If Mid(MDId$, 1, 3) = "PCI" Then DDsc = "(PCI) " + DDsc
If Mid(MDId$, 1, 6) = "ISAPNP" Then DDsc = "(ISA) " + DDsc
NoMD: