LSGetMessage
Syntax
LS_STATUS_CODE LSGetMessage (
LS_HANDLE lshandle,
LS_STATUS_CODE Value,
unsigned char *Buffer,
unsigned long BufferSize );
Argument | Description |
lshandle |
Handle returned by the request API. |
Value |
Error code. |
Buffer (out) |
Buffer to store message. When the handle provided is invalid, the buffer parameter returned contains the error code. However, it will show the feature name as UNKNOWN. |
BufferSize |
Size of the buffer. |
Description
Prints error messages corresponding to specified error code.
Returns in the buffer a text description of the error condition indicated by error code value, for the feature associated with lshandle. The buffer must be allocated by the calling function with its size indicated by bufferSize.
Returns
The status code LS_SUCCESS is returned if successful. Otherwise, it will return the following error codes:
Error Code |
Description |
LS_NO_MSG_TEXT |
>buffer is NULL >bufferSize is zero or negative. |
For a complete list of the error codes, see Licensing Library Error and Result Codes.