WIAS_LHRESULT macro (wiautil.h)

The WIAS_LHRESULT macro is obsolete. It is recommended that the [WIAS_HRESULT]9/windows-hardware/drivers/ddi/wiamdef/nf-wiamdef-wias_hresult) macro be used instead. The WIAS_LHRESULT macro translates an HRESULT value into a string and writes the string to the diagnostic log file.

Syntax

void WIAS_LHRESULT(
   x,
   y
);

Parameters

x

y

  • hr - Specifies the HRESULT value to be translated into a string.

  • pIWiaLog - Pointer to an IWiaLog Interface.

Return value

None

Remarks

The following is an example of how the macro can be used:

hr = wiasFreePropContext(*pContext);
if (hr != S_OK)
   WIAS_LHRESULT(g_pIWiaLog, hr);

The WIAS_LHRESULT macro is obsolete. It is recommended that the WIAS_HRESULT macro be used instead.

Requirements

Requirement Value
Minimum supported client Obsolete. Use WIAS_HRESULT instead.
Target Platform Desktop
Header wiautil.h (include Wiautil.h)

See also

WIAS_HRESULT

WIAS_LERROR

WIAS_LTRACE

WIAS_LWARNING