The RUI function provides event notification for all RUI verbs.
void WINAPI RUI(
LUA_VERB_RECORD FAR *lpVCB
);
The code returned in lua_prim_rc indicates whether asynchronous notification will occur. If the field is set to LUA_IN_PROGRESS, asynchronous notification will occur through event signaling. If the flag is not LUA_IN_PROGRESS, the request completed synchronously. Examine the primary return code and secondary return code for any errors.
The application must provide a handle to an event in the lua_post_handle parameter of the VCB. The event must be in the not-signaled state.
When the asynchronous operation is complete, the application is notified through the signaling of the event. Upon signaling of the event, examine the primary return code and secondary return code for any error conditions.