wiauDbgLegacyHresult2 function (wiautil.h)

The wiauDbgLegacyHresult2 function logs a default message containing an HRESULT.

Syntax

void wiauDbgLegacyHresult2(
  [in] HINSTANCE hInstance,
       HRESULT   hr
);

Parameters

[in] hInstance

Specifies the handle to the DLL instance.

hr

Specifies the HRESULT to be logged.

Return value

None

Remarks

A call to the wiauDbgLegacyHresult2 function is equivalent to the following call to the wiauDbgErrorHr function:

wiauDbgErrorHr(hr, "", "");

That is, only one line is output to the log file and/or debugger. The line has the following form:

ERROR HRESULT = HRESULT value, Error text for HRESULT

Requirements

Requirement Value
Target Platform Desktop
Header wiautil.h (include Wiautil.h)

See also

wiauDbgErrorHr