Leser: 1
![]() |
|< 1 2 3 4 >| | ![]() |
35 Einträge, 4 Seiten |
[E|B,26.03.2005, 20:15]Wieso ist das so langsam? Meins steht auf 100000000!
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
use strict;
use warnings;
use Win32::TieRegistry( Delimiter=>"/");
my $Glob_Key = $Registry->{"LMachine/SYSTEM/CurrentControlSet/Control/Class"}
or die "Can't read LMachine/SYSTEM/CurrentControlSet/Control/Class value: $^E\n";
my @Glob_Key = keys(%{$Glob_Key})
or die "Can't read LMachine/SYSTEM/CurrentControlSet/Control/Class value: $^E\n";
for (@Glob_Key)
{
my $Net_Key = $Registry->{"LMachine/SYSTEM/CurrentControlSet/Control/Class/".$_}
or die "Can't read LMachine/SYSTEM/CurrentControlSet/Control/Class.$_ value: $^E\n";
my @Net_Key = keys(%{$Net_Key})
or die "Can't read LMachine/SYSTEM/CurrentControlSet/Control/Class.$_ value: $^E\n";
#print @Net_Key,"\n";
for (@Net_Key)
{
my $Duplex = $Registry->{"LMachine/SYSTEM/CurrentControlSet/Control/Class/".$_ ."/SpeedDuplex"}
or die "Can't read LMachine/SYSTEM/CurrentControlSet/Control/Class.$_ value: $^E\n";
my @Duplex = keys(%{$Net_Key})
or die "Can't read LMachine/SYSTEM/CurrentControlSet/Control/Class.$_ value: $^E\n";
print $_,"\n";
}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
my $Class = $Registry->{"LMachine/SYSTEM/ControlSet001/Control/Class"} || die "Can't read LMachine/SYSTEM/ControlSet001/Control/Class key: $^E\n";
my $NetKey;
foreach my $SubKey (keys %{$Class}) {
my ( $value, $type )= $Class->{$SubKey}->{"/Class"};
if (defined $value && $value eq 'Net') {
$NetKey = $Class->{$SubKey};
last;
}
}
my $AdapterKey;
foreach my $SubKey (keys %{$NetKey}) {
my ( $value, $type )= $NetKey->{$SubKey}->{"/NetCfgInstanceId"};
if (defined $value && $value eq "{$adp_string}") {
$AdapterKey = $NetKey->{$SubKey};
last;
}
}
foreach my $SubKey (keys %{$AdapterKey->{'Ndi'}->{'params'}}) {
my $pKey = $SubKey;
chop $pKey;
my ( $value, $type )= $AdapterKey->{$pKey};
my ( $paramname, $ptype )= $AdapterKey->{'Ndi'}->{'params'}->{$SubKey}->{"/ParamDesc"};
print "$paramname: $value\n";
}
![]() |
|< 1 2 3 4 >| | ![]() |
35 Einträge, 4 Seiten |