Boost logo

Boost :

From: joel reed (joel.reed_at_[hidden])
Date: 2005-11-01 19:18:17


On Tue, Nov 01, 2005 at 08:39:04PM +0100, Pavel Vozenilek wrote:
>
> "joel reed" wrote:
>
> > Given a process, I'd like to be able to query the parent process. Posix
> > has
> > such a notion, but win32 doesn't.
> >
>
> Toolhelp functions CreateToolhelp32Snapshot(), then
> Process32First()/Process32Next(), examine item
> th32ParentProcessID.

Thanks Pavel, I'll look into these functions.

As far as an idiom is concerned, I found one that may work - using a
"parent_iterator" where parent_iterator() is the end of sequence marker.

This would match istream_iterator.

jr


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk