On Aug 1, 9:43 am, [EMAIL PROTECTED] (Epanda) wrote:
> I have tried your pm and it works well on XP but does not on my NT
> platform.
>
> I have the following error : Error - Variant '$_[0]' support status is
> unknown. This can happen if
>         you 'use Win32::Process::Info ();'. Please do not do that.
> eod
>
> When I set the environment variables I have Windows_NT has OS.
> So it should work no ?
>
> Happytown a écrit :
>
> > On Jul 30, 11:09 am, [EMAIL PROTECTED] (Ron Bergin) wrote:
> > > On Jul 29, 9:12 am, [EMAIL PROTECTED] (Epanda) wrote:
>
> > > > Hi HappyTown
>
> > > > I have seen your web link but I don't think it can show me the PID if
> > > > I give the name of an existing and running Win NT application.
>
> > > > On 28 juil, 05:24, [EMAIL PROTECTED] (Happytown) wrote:
>
> > > > > On Jul 26, 3:14 am, [EMAIL PROTECTED] (Epanda) wrote:
>
> > > > > > Hi,
>
> > > > > > I would like to know if it is possible to get win32 process ID under
> > > > > > Windows NT without using Win32::OLE because this one does not work
> > > > > > under NT.
>
> > > > > > Thanks
>
> > > > > Maybe, this module can help 
> > > > > you:http://search.cpan.org/~cosimo/Win32-API-0.55/API.pm
>
> > > Win32::API will do what you need, however, it's not the easiest to
> > > use. Getting the process info requires calling several (about 5)
> > > different C functions in kernel32.dll and setting up the function
> > > calls can be tricky.
>
> > > It would be easier and better to use Win32::Process::Info (which uses
> > > Win32::API) and let it deal with setting up the function 
> > > calls.http://search.cpan.org/~wyant/Win32-Process-Info-1.012/lib/Win32/Proc...Hide
> > >  quoted text -
>
> > > - Show quoted text -
>
> > Yes, you're right.

Does your use statement look like this:
use Win32::Process::Info ();

or this:
use Win32::Process::Info;


What result do you get from this little test script?

#!perl

use Win32;
print Win32::IsWinNT();


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to