🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2
Article #174

HWND from PID

#174
From: Dan Higdon
Date: Fri, 17 Nov 1989 08:02
16 lines
1187 bytes
Ok, all you Microsoft people out there, here's a fun one....

How can I find the Window ID of a Child process?  I can (obviously)
get the PID from my DosExecPgm call, but how can I then get a handle
on the new process's window?  I KNOW there must be a call for this,
but I can't find it in the INDEX... :-#

I know I could enumerate all the top level windows and try to find the
one I'm looking for, but that seems a little barbaric.

Another, related question:  When you ExecPgm a new process ASYC, does
it continue to run after the parent dies?  (please say yes.)

Thanks in advance for your help!

hdan@sleepy.cc.utexas.edu  (Really Dan Higdon)
Technical Details
Message-ID: <21069@ut-emx.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!texbell!wuarchive!cs.utexas.edu!ut-emx!walt.cc.utexas.edu!hdan

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!texbell!wuarchive!cs.utexas.edu!ut-emx!walt.cc.utexas.edu!hdan
From: hdan@walt.cc.utexas.edu (Dan Higdon)
Newsgroups: comp.os.os2
Subject: HWND from PID
Summary: Getting the Frame HWND from a child process.
Message-ID: <21069@ut-emx.UUCP>
Date: 17 Nov 89 08:02:37 GMT
Sender: news@ut-emx.UUCP
Reply-To: hdan@walt.cc.utexas.edu (Dan Higdon)
Distribution: comp.os.os2
Organization: The University of Texas at Austin, Austin, Texas
Lines: 16
Keywords: HWND PID