Available in LEADTOOLS Imaging Pro, Vector, Document, and Medical Imaging toolkits. |
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. |
See Also
Functions: |
LWia::EnumChildItems, LWia::GetRootItem, LWia::EnumItemsCallBack, LWia::InitSession, LWia::EndSession, Class Members |
Topics: |
|
|
Example
For an example, refer to LWia::GetRootItem.