| 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 <=-
|
| 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
|