Re: getting process id under NT



On Jul 29, 9:12 am, callingel...@xxxxxxxxxx (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, wxr...@xxxxxxxxx (Happytown) wrote:

On Jul 26, 3:14 am, callingel...@xxxxxxxxxx (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/Process/Info.pm

.



Relevant Pages

  • Re: Starting an external application from C++
    ... The getpid() system call returns both the current PID and the ... Basically the parent application is a client app which spawns the server, ... I'm not calling system(). ...
    (comp.unix.programmer)
  • Re: ps command
    ... >>Hard to say without knowing what you want to use it for. ... number of processes and the pid of the one most ... you read /proc/loadavg just before and after calling ... Kasper Dupont -- der bruger for meget tid på usenet. ...
    (comp.os.linux.development.system)
  • Re: [PATCH] connector: Fix sid connector (was: Badness at kernel/softirq.c:143...)
    ... sys_setsid holds the tasklist_lock with spinlock_irq while calling ... the connector. ... change_pid(curr, PIDTYPE_SID, pid); ... return err; ...
    (Linux-Kernel)
  • Re: Starting an external application from C++
    ... Thus the pid that execve has is already changed from the child pid. ... It would help to see more of the truss output here. ... external program it's calling, or exactly what symptoms you see. ...
    (comp.unix.programmer)