IRestrictedErrorInfo::GetErrorDetails method (restrictederrorinfo.h)

Returns information about an error, including the restricted error description.

Syntax

HRESULT GetErrorDetails(
  [out] BSTR    *description,
  [out] HRESULT *error,
  [out] BSTR    *restrictedDescription,
        BSTR    *capabilitySid
);

Parameters

[out] description

Type: BSTR*

The error description.

[out] error

Type: HRESULT*

The error code associated with the error condition.

[out] restrictedDescription

Type: BSTR*

The restricted error description.

capabilitySid

TBD

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Requirement Value
Minimum supported client Windows 8 [desktop apps | UWP apps]
Minimum supported server Windows Server 2012 [desktop apps | UWP apps]
Target Platform Windows
Header restrictederrorinfo.h

See also

IRestrictedErrorInfo