LWia::EnumFormatsCallBack

#include "ltwrappr.h"

virtual L_INT LWia::EnumFormatsCallBack(nFormatsCount, nTransferMode, pFormat)

L_INT nFormatsCount;

/* enumerated formats count */

L_INT nTransferMode;

/* transfer mode for the enumerated format */

GUID * pFormat;

/* pointer to GUID structure that contains the enumerated format */

Called for each enumerated capability of the WIA device and also lets the user abort the enumeration process. And it will be enabled only if you enabled the callback functions by calling LBase::EnableCallBack (TRUE).

Parameter

Description

nFormatsCount

The count of the enumerated WIA device formats.

nTransferMode

The transfer mode for the received enumerated format.

pFormat

Pointer to a GUID structure that contains the received enumerated format.

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.

Call this function to provide the user with information about the available transfer format of the selected WIA device and also to allow the user to abort the enumeration process.

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::EnumFormats, LWia::InitSession, LWia::EndSession, Class Members

Topics:

WIA Functionality: Property Functions

 

WIA Functionality: Callbacks

Example

For an example, refer to <Function name>

Or

An example that uses this function.