Guardian Programmer's Guide

Table Of Contents
Communicating With Terminals
Guardian Programmer’s Guide 421922-014
10 - 26
Releasing BREAK Ownership
PARAM^ARRAY,
PARAM^COUNT,
LAST^PARAM^ARRAY,
LAST^PARAM^COUNT);
The first word of the last-param-array contains an internally defined integer that
identifies the current owner of BREAK. The second word contains an indication of the
BREAK mode.
The last-param-count returns the length of the last-param-array value in
bytes, and is always 8 for function 3.
Releasing BREAK Ownership
When your application no longer wants to receive Break-on-Device messages, it
should reenable BREAK for the last owner.
To return BREAK ownership to the previous BREAK owner, you simply supply the
SETPARAM (or SETMODE) procedure with the internal process identifier and BREAK
mode that you acquired in the call that took BREAK ownership:
CALL SETPARAM(TERM^NUM,
SET^BREAK^FUNCTION,
LAST^PARAM^ARRAY,
LAST^PARAM^COUNT);
In other words, you use the last-param-array and last-param-count values
returned by the previous SETPARAM call as the param-array and param-count
parameters to this call.