Frees the items enumerated by the L_WiaEnumChildItems function.
#include "ltwia.h"
L_LTWIA_API L_INT EXT_FUNCTION L_WiaFreeItem(hSession, pItem)
Handle to an existing WIA session. This handle is obtained by calling the L_WiaInitSession function.
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 LWIAENUMITEMSCALLBACK when the device's child items were enumerated.
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
This feature is available in version 16 or higher.
It is the user's responsibility to free the items enumerated by the L_WiaEnumChildItems function through the LWIAENUMITEMSCALLBACK function. To do so, call the L_WiaFreeItem function for each item enumerated through the callback mentioned above.
✎ NOTE
This function is called internally by L_WiaAcquireSimple.
LEADTOOLS WIA supports both 32-bit and 64-bit image acquisition for both WIA 1.0 (XP and earlier) and WIA 2.0 (VISTA and later).
For an example, refer to L_WiaGetRootItem.