GetHResult

傳回 HRESULT 值,指出錯誤碼。

語法

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

參數

pHResult
[out]指出錯誤碼之 HRESULT 值的指標。

傳回值

下表描述可能的傳回值。

傳回值 描述

S_OK

函式已成功傳回錯誤碼。

E_POINTER

不正確指標。

IControlErrorInfo