GetHResult

Returns an HRESULT value that indicates the error code.

Syntax

HRESULT GetHResult
  ([out, retval] HRESULT* pHResult)
;

Parameters

pHResult
[out] Pointer to the HRESULT value that indicates the error code.

Return Value

The following table describes possible return values.

Return Value Description

S_OK

The function successfully returned the error code.

E_POINTER

Invalid pointer.

IControlErrorInfo