LWia::GetSelectedDevice

#include "ltwrappr.h"

virtual L_TCHAR * LWia::GetSelectedDevice()

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

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

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

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