WIAS_LHRESULT macro (wiamdef.h)

The WIAS_LHRESULT macro is obsolete. It is recommended that the 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(
   pILog,
   hr
);

Parameters

pILog

hr

Specifies the HRESULT value to be translated into a string.

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 wiamdef.h (include Wiautil.h)

See also

WIAS_HRESULT

WIAS_LERROR

WIAS_LTRACE

WIAS_LWARNING