Contents - Index Get Error Message

HRESULT SLS_GetErrorMessage(
                                                     HRESULT hr,
                                                     LPTSTR pszErrorMessage)

The SLS_GetErrorMessage returns an error message associated with an error code.



Specifies an error status code returned from any SLSAPI function


Points to a buffer allocated by caller to receive the error message specified in the error code hr. The minimum length of the buffer is 256 bytes.

Return Values

SLS_SUCCESS if the function is successful. Otherwise an error status code is returned to indicate the cause of the error.