[Contents] [index] [Help] [Retrace] [browse <] [Browse >]

A process can force the system requests which are caused by its actions to
appear on a custom screen by changing the pr_WindowPtr field of its
process structure.  this field may be set to three values: zero, negative
one or a valid pointer to the window structure of an open window.  if
pr_WindowPtr is set to zero, the request will appear on the default public
screen.  If pr_WindowPtr is set to negative one, the system request will
never appear and the return code will be as if the user had selected the
rightmost button (negative response).  If pr_WindowPtr is set to a valid
window pointer, then the request will appear on the same screen as the
window.

The original value of pr_windowptr should be cached and restored before
the window is closed.