commit for archiving

This commit is contained in:
2025-08-27 09:03:01 +02:00
commit a163c80769
140 changed files with 49745 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
#!c:/perl/bin/perl -w
use Win32::Process::List;
use strict;
my $P = Win32::Process::List->new();
if($P->IsError == 1)
{
print "an error occured: " . $P->GetErrorText . "\n";
}
my %list = $P->GetProcesses();
my $anz = scalar keys %list;
print "Anzal im Array= $anz\n";
my $count = 0;
foreach my $key (keys %list) {
my $pid = $list{$key};
print sprintf("%15s has PID %5i", $key, $pid) . "\n";
$count++;
}
print "Number of processes: $count\n";
my $process = "explorer";
my @hPIDS = $P->GetProcessPid($process);
if($hPIDS[0] != -1) {
foreach ( 0 .. $#hPIDS ) {
print "$process has PID " . $hPIDS[$_] . "\n";
}
}