IAUX_Inst::FormatHRESULT Method

From PDF XChange PDF SDK
Jump to: navigation, search


Formats the result string.

Syntax

HRESULT FormatHRESULT([in]                   HRESULT  nErrCode,
                      [in, defaultvalue(0)]  ULONG    nFlags,
                      [out, retval]          BSTR*    sRes);

Parameters

nErrCode
[in] Value of HRESULT containing the result code that needs to be formatted.
nFlags
[in, defaultvalue(0)] Value of ULONG containing the formatting flags (can be 1 or 0). If 1 was specified then the short formatting will be used. If 0 was specified then full formatting will be used (this will add the "<Severity> [<Facility>]: " prefix).
sRes
[out, retval] Pointer to BSTR containing the formatted result string.

Return Value

Returns S_OK if operation was successful or error code in other cases.

See Also

IAUX_Inst