The GetAppcReturnCode function converts the primary and secondary return codes in the verb control block to a printable string. This function provides a standard set of error strings for use by APPC applications such as 5250 emulators.
int WINAPI GetAppcReturnCode(
struct appc_hdr FAR * vpb,
UINT buffer_length,
unsigned char FAR * buffer_addr
);
The GetAppcReturnCode function returns a positive value on success that indicates the length of the error string passed back in buffer_addr.
A return value of zero indicates an error. On Microsoft® Windows NT® and Microsoft® Windows® 95, a call to GetLastError provides the actual error return code as follows:
The descriptive error string returned in buffer_addr does not terminate with a new line character (\n).
The descriptive error strings are contained in APPCSTR.DLL (for Windows version 3.x) or APPCST32.DLL (for Windows NT and Windows 95) and can be customized for different languages.