in reply to access handle from @info using win32 process info
have a need to retrieve the handle, (processid)
I'm not wishing to be pedantic, but a handle to a process and the PID (process id) are not the same thing, and I would not wish you to be mislead into thinking they are interchangeable.
A PID is a system-wide number which uniquely identifies a process - nothing more. A Handle is process-specific (like a file descriptor on UNIX), and gives the owner security permissions to do something with or to the object to which it refers. For example, synchronize (WaitForSingleObject). A handle can only be obtained after a security check and by specifying the actions required. Anyone can get a PID, but you can't do much with it.
What's more, a process (or thread) will not die until all handles open to it are closed. Failure to close a process handle results in a so-called zombie process (on Windows these are difficult to detect). So if you are getting handles, make sure you close them as soon as you can, although they will be closed when you exit. Win32::Proc::Create is an example where a process handle is obtained.