IWiaItemExtras::GetExtendedErrorInfo method (wia_xp.h)

The IWiaItemExtras::GetExtendedErrorInfo method gets a string from the device driver that contains information about the most recent error. Call this method after an error during an operation on a Windows Image Acquisition (WIA) item (such as data transfer).

Syntax

HRESULT GetExtendedErrorInfo(
  BSTR *bstrErrorText
);

Parameters

bstrErrorText

Type: BSTR*

Pointer to a string that contains the error information.

Return value

Type: HRESULT

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

Remarks

Applications must call the SysFreeString function to free the string to which bstrErrorText points.

Requirements

   
Minimum supported client Windows 2000 Professional, Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header wia_xp.h (include Wia.h)
Library Wiaguid.lib
DLL Wiaservc.dll

See also

IWiaItemExtras