🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2
Article #188

PID to HWND

#188
From: Dan Higdon
Date: Mon, 20 Nov 1989 00:37
16 lines
1163 bytes
A few days ago, I posted a message asking how to get an HWND from
the PID of a child process.  Perhaps if you knew what I had in mind,
it might be more clear.
I want to write an "iconizer", which will load programs up for PM
in iconic format, like the load= option in ms-Windows.

I was planning on DosExecPgm ASYNC-ing the task, getting its MSGQ
or HWND from the PID, and sending it the WM_ICONIZE (or whatever)
message.  The problem is, I can't re-write the children processes
to "return" their HWNDs, since I want the iconizer to be general purpose.

If any of you know of a better way to do this, PLEASE tell me!  I won't
write the program if I don't have to!

Thanks for your help in advance,
hdan@sleepy.cc.utexas.edu (really Dan Higdon)
Technical Details
Message-ID: <21167@ut-emx.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!cs.utexas.edu!ut-emx!walt.cc.utexas.edu!hdan

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!cs.utexas.edu!ut-emx!walt.cc.utexas.edu!hdan
From: hdan@walt.cc.utexas.edu (Dan Higdon)
Newsgroups: comp.os.os2
Subject: PID to HWND
Message-ID: <21167@ut-emx.UUCP>
Date: 20 Nov 89 00:37:46 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