LVCA_GetLastSystemErrorA/LVCA_GetLastSystemErrorW

This function will retrieve the last system error that occurred.

LVCA_API LONG WINAPI LVCA_GetLastSystemErrorA(LPSTR Message, LONG * Size);

LVCA_API LONG WINAPI LVCA_GetLastSystemErrorW(LPWSTR Message, LONG * Size);

Defined as:

LVCA_GetLastSystemError

Return Value:

If successful,LVCA_GetLastSystemErrorA/LVCA_GetLastSystemErrorW returns true.  If false is returned, call LVCA_GetLastCallError to retrieve the error code and message.

Errors Codes

CAMERR_INVALID_CALL_HANDLE
The call handle passed to LVCA was invalid.

CAMERR_BUFFER_SIZE_TOO_SMALL
Returned if the supplied buffer was too small to contain the requested data.

CAMERR_UNSUPPORTED_BY_EVENT
The LVCA function is not supported by the current event.

CAMERR_INDEX_OUT_OF_RANGE
The index supplied was out of the valid range.

CAMERR_MODULE_NOT_FOUND
The supplied module was not found in the Platform Project.

CAMERR_LIBRARY_AUDIO_NOT_FOUND
The supplied audio description was not found in the Platform Project.

CAMERR_MODULE_TYPE_NO_CONCEPT_SUPPORT
The current module does not support recognitions.

CAMERR_INVALID_GRAMMAR_SPECIFIED
The standard grammar specified was invalid.

Supported on Events:

CAMSG_CALLSTART

CAMSG_CALLSTOP

CAMSG_ENTERMODULE

CAMSG_REC_BEFORE_CONFIRM

CAMSG_REC_AFTER_CONFIRM

CAMSG_TIMEOUT CAMSG_ERROR

Params:

Message (IN) buffer to receive plain english description of last error.

Size (IN) Size of Message buffer

Notes:

This is the last Windows system reported error


Complete Help Topic List | Speech Platform Product Information