HP-UX SNAplus2 R7 LUA Programmer's Guide
Designing and Writing LUA Applications
LUA Entry Points for Windows Applications
Function Call
BOOL WINAPI WinRUICleanup (void);
Supplied Parameters
There are no supplied parameters for this function.
Returned Values
The return value from the function is one of the following:
TRUE
The application was unregistered successfully.
FALSE
An error occurred during processing of the call, and the application was not unregistered. Check the log files
for messages indicating the cause of the failure.
2.2.6 GetLuaReturnCode
The application uses this function to obtain a printable character string indicating the primary and secondary return
codes from a supplied VCB. The string can be used to generate application error messages for non-LUA_OK return
codes.
Function Call
int WINAPI GetLuaReturnCode (
struct LUA_COMMON FAR * vcbptr,
unsigned int buffer_length,
unsigned char far * buffer_addr
);
Supplied Parameters
Supplied parameters are:
vcbptr
A pointer to the VCB structure for the verb. For more information about the VCB structure and on its usage
for individual verbs, see Chapter 4, RUI Verbs.
buffer_length
The length (in bytes) of the buffer supplied by the application to hold the returned data string. The
recommended length is 256 bytes.
buffer_addr
The address of the buffer supplied by the application to hold the returned data string.
Returned Values
The return value from the function is one of the following:
0
(zero)
The function completed successfully.
0x20000001
LUA could not read from the supplied VCB, or could not write to the supplied data buffer.
0x20000002
36