Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Win32::Process::Info - get process UserModeTime

Status
Not open for further replies.

MoshiachNow

IS-IT--Management
Joined
Feb 6, 2002
Messages
1,851
Location
IL
HI,

RUnning on XP,using Win32::Process::Info to get the process UserModeTime"

my $CONNECT_MONIKER = "WinMgmts:{impersonationLevel=impersonate}!//$Config{machine}";
my $WMI = Win32::OLE->GetObject( $CONNECT_MONIKER ) || &disp("Unable to connect to \\$Machine:",'RED');
my $ProcList = $WMI->InstancesOf( "Win32_Process" );

my $pi = Win32::Process::Info->new;
foreach my $Proc ( $ProcList ) {
my @info = $pi->GetProcInfo ($Proc->{'ProcessID'});
print "info=@info\n";
}


"@info" prints as a list of hashes.
How do I get the UserModeTime for each process out of this ?
Thanks


Long live king Moshiach !
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top