in reply to Re: Install OS2::Process on windows
in thread Install OS2::Process on windows
Is there any other way to find pid of a process by using Hwind? kindly helpuse Win32; use Win32::OLE qw(in with); use Win32::OLE::Const 'Microsoft Excel'; use Win32::OLE::Variant; use Win32::OLE::NLS qw(:LOCALE :DATE); use Win32::OLE; use Win32::OLE::Const; use OS2::Process; $Win32::OLE::Warn = 3; # die on errors... $Constant = Win32::OLE::Const->Load('Microsoft Excel'); $Excel = Win32::OLE->new('Excel.Application', sub {$_[0]->Quit;}) || die "Error launching MS Excel ".Win32::OLE->LastError(1); $hwnd = $Excel->{"Hwnd"}; ($pid, $tid) = WindowProcess($hwnd) ; print "\n\n $pid \n\n"; .... .... ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Install OS2::Process on windows
by bart (Canon) on Jun 14, 2005 at 10:22 UTC | |
by Nalina (Monk) on Jun 14, 2005 at 11:58 UTC | |
by bart (Canon) on Jun 14, 2005 at 12:09 UTC | |
by Nalina (Monk) on Jun 15, 2005 at 05:55 UTC |