HP-UX SNAplus2 R7 LUA Programmer's Guide

Designing and Writing LUA Applications
LUA Entry Points for Windows Applications
2.2.4 WinRUIGetLastInitStatus
The application uses this function to determine the status of a previous RUI_INIT verb that is still outstanding. It
can use the returned information to decide whether to cancel the session initiation (by issuing RUI_TERM) or to
wait for the session to be established.
The function can be used to do any of the following:
Request information about the current status of the session initiated by a specic RUI_INIT verb.
Request asynchronous notication of changes to session status for a specic session or for all sessions. When
the session status changes, LUA will indicate this by either posting a message to the applications window
handle or by signaling the applications event handle.
Cancel a previous request for asynchronous notication of changes to session status.
Before using the
WinRUI call for the rst time, the application must use WinRUIStartup to register as
a Windows LUA application. If it requires asynchronous notication of status changes, it must also use
RegisterWindowMessage to obtain the message identier that LUA will use for this notication. For more
information about these calls, see Section 2.2.2,
WinRUIStartup and Section 2.2.4, WinRUIGetLastInitStatus.
Function Call
int WINAPI WinRUIGetLastInitStatus (
DWORD Sid,
HANDLE StatusHandle,
DWORD NotifyType,
BOOL ClearPrevious
);
Supplied Parameters
Supplied parameters are:
Sid
To obtain information about the session status for a specic RUI_INIT verb, or to cancel a previous request
for notication of session status changes for this verb, specify the session ID returned on the initial return
from the RUI_INIT verb.
To request notication on session status changes for all outstanding RUI_INIT verbs, specify 0 (zero). In this
case, the StatusHandle parameter must specify a valid Windows handle, because the information will always
be returned asynchronously.
To cancel notication of session status changes for all outstanding RUI_INIT verbs, specify 0 (zero).
StatusHandle
To obtain the current session status for a specic RUI_INIT verb, without requesting notication of subsequent
changes, specify a null handle.
To request notication on session status changes, either for a specic RUI_INIT verb or for all outstanding
RUI_INIT verbs, specify a Windows handle or an event handle that LUA will use when the session status
changes.
If the ClearPrevious parameter is set to TRUE, to cancel a previous notication request, LUA ignores this
parameter.
NotifyType
If requesting asynchronous notication, this parameter determines how LUA should identify the RUI_INIT
verb on the asynchronous notication message. Allowed values:
WLUA_NTFY_MSG_CORRELATOR
The StatusHandle parameter contains a window handle. Identify the verb using the lua_correlator value
supplied on the RUI_INIT verb.
33