Rediger

Del via


IWiaItem2::GetPreviewComponent method

Gets the Windows Image Acquisition (WIA) 2.0 preview component.

Syntax

HRESULT GetPreviewComponent(
  [in]  LONG        lFlags,
  [out] IWiaPreview **ppWiaPreview
);

Parameters

lFlags [in]

Type: LONG

Not used. Set to 0.

ppWiaPreview [out]

Type: IWiaPreview**

Returns the address of a pointer to the IWiaPreview interface of the preview component.

Return value

Type: HRESULT

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

Remarks

Use this function to return a pointer to the address of the WIA 2.0 preview component for any IWiaItem2 object in the object tree of a WIA 2.0 hardware device.

Applications must call the IUnknown::Release method on the interface pointers that they receive through the ppWiaPreview parameter.

Requirements

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2008 [desktop apps only]
Header
Wia.h
IDL
Wia.idl

See also

IWiaItem2

IWiaPreview