| You can tell if a workstation is paused by checking for the existence of the
session manager pause window and then seeing if that window is mapped and
visible. If it exists, is mapped, and is visible, then the session is paused.
Take a look at files XAQUARIUM.C and SMPAUSEWINDOW.C in
TLE::ULNK$:[WINALSKI.XAQUARIUM]. XAQUARIUM.C contains a routine InPausedState()
that will tell you if the session is paused. SMPAUSEWINDOW.C contains a routine
SmPauseWindow() that will find and return the window ID of the session manager's
pause window. InPausedState() uses SmPauseWindow() to find the pause window.
--PSW
|