in reply to handlecount of win32 process
#! perl -slw use strict; use Win32::API; Win32::API->Import( 'Kernel32', 'HANDLE GetCurrentProcess( )' ); Win32::API->Import( 'Kernel32', 'BOOL GetProcessHandleCount(HANDLE h, LPDWORD c)' ); my $hProcess = GetCurrentProcess(); my $count = 0; GetProcessHandleCount( $hProcess, $count ) or die $^E; printf "This process is using %d handles\n", $count; __END__ P:\test>479539 This process is using 16 handles
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: handlecount of win32 process
by slloyd (Hermit) on Jul 30, 2005 at 01:49 UTC | |
|
Re^2: handlecount of win32 process
by slloyd (Hermit) on Aug 01, 2005 at 14:20 UTC |