Retrieves additional information about an error.
Syntax
HRESULT GetError( LPDWORD pdwErrorType, LPDWORD pdwErrorCode, LPDWORD pdwErrorBufLen, LPWSTR wsError );
Parameters
- pdwErrorType
- Indicates the error type. This is currently set to zero.
- pdwErrorCode
- Indicates the error code.
- pdwErrorBufLen
- Indicates the size, in bytes, of the wsError buffer. This is set to the number of bytes written to wsError if the buffer was large enough, or to the required buffer size if the buffer was not large enough.
- wsError
- Address of a buffer that receives the error information.
Return Value
Returns S_OK if successful, or an error code otherwise.