Click to See Complete Forum and Search --> : Child Process
Yaron
Aug 18th, 2000, 03:07 AM
How can i know if one process is a child of another process ? or how can i find out the parent process of a given process ?
Thanks
gwdash
Aug 22nd, 2000, 01:34 PM
Use the IsChild API.
Dim ret
ret = IsChild(Form1.hwnd, Command1.hwnd)
if ret = 0 then
Debug.Print "Not Parent"
Else
Debug.Print "Parent"
for number 2, use GetParent API. See http://www.vbapi.com for both
Yaron
Aug 23rd, 2000, 04:41 AM
I think that IsChild will work only within the process and not between two windows belonging to a different processes.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.