ITcSysManager2::GetLastErrorMessages

Returns the error and warning messages accumulated in the internal buffer and then clears the buffer. Many methods log additional diagnostic messages here, even if their HRESULT is S_OK. Therefore, it is recommended to call this function after each relevant step.

Signature

HRESULT GetLastErrorMessages(BSTR* pError);

Parameter

(none)

Return value

Name

Type

Description

pError

BSTR*

[out, retval] Concatenated error/warning text since the last call; may be empty.

(HRESULT)

HRESULT

S_OK if successful, otherwise an error code.