LWia::GetProperties

#include "ltwrappr.h"

virtual L_INT LWia::GetProperties(pItem, pProperties)

L_VOID * pItem;

/* pointer to IWiaItem or IWiaItem2 interface */

pLWIAPROPERTIES pProperties;

/* pointer to a structure */

Gets the properties for the specified item.

Parameter

Description

pItem

Valid pointer to a type IWiaItem or IWiaItem2 object(IWiaItem if using WIA Version 1.0, IWiaItem2 if using WIA Version 2.0), which represents the item for which you want to get the properties.

 

You can retrieve this parameter by either calling the LWia::GetRootItem function to get a pointer to the device's root item or by enumerating the child items of the device through a call to LWia::EnumChildItems.

pProperties

Pointer to a structure of type LWIAPROPERTIES to receive the items properties.

 

You should set the uStructSize member of this structure to the sizeof(LWIAPROPERTIES) before passing it to the LWia::GetProperties function.

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.

This function will fill the pProperties structure with the properties of the item passed through the pItem parameter.

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::SetProperties, LWia::GetRootItem, LWia::EnumChildItems, LWia::InitSession, LWia::EndSession, Class Members

Topics:

Managing WIA Sources

 

WIA Functionality: Property Functions

Example

For an example, refer to LWia::GetRootItem.