LWia::SelectDevice

#include "ltwrappr.h"

virtual L_INT LWia::SelectDevice(pszDeviceId)

L_TCHAR * pszDeviceId;

pointer to string that contains device ID

Selects the WIA device for the specified device ID.

Parameter

Description

pszDeviceId

Pointer to string that contains device ID.

 

You can obtain this device ID by enumerating the available WIA devices on your machine.

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.

Use this function when working with multiple WIA devices installed on a machine in order to select the WIA device without displaying the Select Device dialog. To do this, enumerate the WIA devices by calling the LWia::EnumDevices function. Then use it to keep a list of all received device IDs. Then call LWia::SelectDevice function using the device ID for the device to be selected.

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.

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
LEADTOOLS WIA C++ Class Library Help