Share via


IRecoverableErrorData::GetErrorDescription

エラーの説明を取得します。

HRESULT GetErrorDescription(
  LPWSTR pszErrorDescription,
  DWORD * pcchErrorDescription);

パラメーター

  • pszErrorDescription
    [in, out, unique, string, size_is(*pcchErrorDescription)] エラーの説明を返します。
  • pcchErrorDescription
    [in, out] pszErrorDescription の文字数を指定します。pcchErrorDescription が小さすぎる場合は、pszErrorDescription に必要な文字数を返します。それ以外の場合は、書き込まれた文字数を返します。

戻り値

  • S_OK

  • E_POINTER

  • HRESULT_FROM_WIN32(ERROR_MORE_DATA) (pszErrorDescription が小さすぎる場合。この場合、必要な文字数が pcchErrorDescription で返されます。)

  • プロバイダーが決定したエラー コード

参照

リファレンス

IRecoverableErrorData インターフェイス