The WinRUICleanup function terminates and deregisters an application using RUI verbs from a Windows LUA implementation.
BOOL WINAPI WinRUICleanup(void);
The return code specifies whether the deregistration was successful. If the value is not zero, the application was successfully deregistered. If the value is zero, the application was not deregistered.
Use WinRUICleanup to indicate deregistration of a Windows LUA application from a Windows LUA implementation. This function can be used, for example, to free up resources allocated to the specific application.
If WinRUICleanup is called while LUs are in session (RUI_TERM not issued), the cleanup code should issue an RUI_TERM close type ABEND for the application for all open sessions.