LWia::FreeItem

#include "ltwrappr.h"

virtual L_INT LWia::FreeItem(pItem)

L_VOID * pItem;

pointer to IWiaItem or IWiaItem2 interface

Frees the items enumerated by the LWia::EnumChildItems function.

Parameter

Description

pItem

Pointer to a type IWiaItem or IWiaItem2 object(IWiaItem if using WIA Version 1.0, IWiaItem2 if using WIA Version 2.0), that was retrieved through the LWia::EnumItemsCallBack when the device's child items were enumerated.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

This feature is available in LEADTOOLS version 16 or higher.

It is the user's responsibility to free the items enumerated by the LWia::EnumChildItems function through the LWia::EnumItemsCallBack function. To do so, call the LWia::FreeItem function for each item enumerated through the callback mentioned above.

Note:

This function is called internally by LWia::AcquireSimple.

Required DLLs and Libraries

LTWIA

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

Help Version 20.0.2018.6.20
Products | Support | Contact Us | Copyright Notices
© 1991-2018 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS WIA C++ Class Library Help