LWia::SelectDevice

Summary

Selects the WIA device for the specified device ID.

Syntax

#include "ltwrappr.h"

virtual L_INT LWia::SelectDevice(pszDeviceId)

Parameters

L_TCHAR * pszDeviceId

Pointer to a string containing the device ID.

To obtain the device ID, enumerate the available WIA devices on your machine.

Returns

Value Meaning
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 [LWia:SelectDevice 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 the [LWia:SelectDevice function using the device ID of the device to be selected.

Notes

WIA 2.0 does not support cameras or streaming video.

When using the high-level LWia::AcquireSimple, it is not necessary to call LWia::InitSession, [LWia:SelectDevice, or LWia::EndSession because it handles session initialization, device selection, and session end automatically.

Required DLLs and Libraries

See Also

Functions

Topics

Example

For an example, refer to LWia::EnumDevices.

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS WIA C++ Class Library Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.