LWia::GetSelectedDevice

Summary

Gets a string pointer containing the ID for the currently selected device.

Syntax

#include "ltwrappr.h"

virtual L_TCHAR * LWia::GetSelectedDevice()

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.

Call [LWia:GetSelectedDevice to get a string representing the ID for the currently selected device.

WIA does not have a default device selection. In order for [LWia:GetSelectedDevice to succeed, be sure to call either LWia::SelectDeviceDlg or LWia::SelectDevice before calling [LWia:GetSelectedDevice.

LWia::AcquireSimple Exception

When using LWia::AcquireSimple for automatic acquisition, it is not necessary to call either of the two functions mentioned above before calling [LWia:GetSelectedDevice. LWia::AcquireSimple calls LWia::SelectDeviceDlg internally, ensuring that a device is currently selected.

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.