VLSerrorHandle
Turns default error handling on or off.
Syntax
LS_STATUS_CODE VLSerrorHandle (
int flag );
Argument | Description |
flag |
To turn on error handling, use VLS_ON. To turn off error handling, use VLS_OFF. Default: VLS_ON. |
Description
If the value of flag is the constant, VLS_ON, error handling is enabled. If flag is VLS_OFF, error handling is disabled. If called with VLS_OFF and LSGetMessage is used, the feature name and version are hidden. When error handlers are not being used, the client function call returns the status code of the latest error condition. The caller of the function should therefore check the value returned by the function before proceeding.
NOTE If you choose to disable error handling in your licensing implementation, it is recommended that you call the VLSerrorHandle API before calling VLSinitialize.
Returns
For a complete list of the error codes, see Licensing Library Error and Result Codes.