LWia::FreeItem

Summary

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

Syntax

#include "ltwrappr.h"

virtual L_INT LWia::FreeItem(pItem)

Parameters

L_VOID * 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

Value Meaning
SUCCESS The function was successful.
< 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

See Also

Functions

Topics

Example

For an example, refer to LWia::GetRootItem.

Help Version 22.0.2022.12.7
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS WIA C++ Class Library Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.