
2 Nov
2005
2 Nov
'05
12:18 a.m.
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