[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference bulova::decw_jan-89_to_nov-90

Title:DECWINDOWS 26-JAN-89 to 29-NOV-90
Notice:See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit
Moderator:STAR::VATNE
Created:Mon Oct 30 1989
Last Modified:Mon Dec 31 1990
Last Successful Update:Fri Jun 06 1997
Number of topics:3726
Total number of notes:19516

2771.0. "getting Window ID from PID" by VAOU02::LAM () Wed May 16 1990 14:23

    Is there any way to find out the window ID (WID) of a child process
    by knowing its process ID (PID) ?
    What the customer wants is : spawn off a child process which opens
    a window; at exit, get the current geometry of the child process
    window.
    Any help appreciated.
T.RTitleUserPersonal
Name
DateLines
2771.1...GSRC::WESTHelp stamp out and abolish redundancy !Wed May 16 1990 14:5022
RE:                       <<< Note 2771.0 by VAOU02::LAM >>>
                           -< getting Window ID from PID >-

>>    Is there any way to find out the window ID (WID) of a child process
>>    by knowing its process ID (PID) ?

  Not that I know of...that info is not kept together anywhere.


>>    What the customer wants is : spawn off a child process which opens
>>    a window; at exit, get the current geometry of the child process
>>    window.

  I'm assuming there will be a process that will spawn off another process.
What I'm not clear on is 'at exit'.  Exit of what?, the SPAWN/NOWAIT or the
exit of the spawned process?

  Suggestion:  The spawned process could save the geometry in a symbol that
the parent can get, or something along these lines...

						-=> Jim <=-

2771.2GILROY::kleeKen LeeWed May 16 1990 15:119
There is no way to get window geometry from a process ID, without help
from a client that has this info.

Sounds like you're trying to collect info to restart a child
application with the same geometry it had before.  The WM_SAVE_YOURSELF
and WM_COMMAND protocol in the ICCCM does something like this, but your
client has to support it.

Ken
2771.3Use a logical across processesTOOLEY::B_WACKERThu May 17 1990 14:332
Have the subproces save the info in a JOB logical name.  It will be 
visible to the main process.