GetLuaReturnCode

The GetLuaReturnCode function converts the primary and secondary return codes in the VCB to a printable string. This function provides a standard set of error strings for use by LUA applications.

int WINAPI GetLuaReturnCode(
  struct LUA_COMMON FAR *vpb,  
  UINT buffer_length,          
  unsigned char FAR *buffer_addr  
);
 

Parameters

vpb
Supplied parameter. Specifies the address of the verb control block.
buffer_length
Supplied parameter. Specifies the length of the buffer pointed to by buffer_addr. The recommended length is 256.
buffer_addr
Supplied/returned parameter. Specifies the address of the buffer that will hold the formatted, null-terminated string.

Return Codes

0x20000001
The parameters are invalid; the function could not read from the specified verb control block or could not write to the specified buffer.
0x20000002
The specified buffer is too small.
0x20000003
The LUA string library LUASTR.DLL (for Windows) or LUAST32.DLL (for Microsoft® Windows NT® or Microsoft® Windows® 95) could not be loaded.

Remarks

The descriptive error string returned in buffer_addr does not terminate with a newline character (\n).

The descriptive error strings are contained in LUASTR.DLL (for Windows) or LUAST32.DLL (for Windows NT or Windows 95) and can be customized for different languages.