GetDeviceType()

Description

Retrieve the device type of the currently selected Data Source, it might be a scanner, a web camera, etc.

Syntax

.GetDeviceType();

Parameters

None

Return value

<int>

Returned Values Device Type
0 Failed, please check ErrorString
1 Digital Camera
2 Flatbed-only scanner
3 Flatbed, feeder, auto feed
4 Feeder-only scanner, auto feed
5 Flatbed, feeder, without auto feed
6 Feeder-only scanner, without auto feed
7 Webcam

When false is returned, check ErrorCode or ErrorString for error information.

Remarks

Currently this method is only valid in Windows & Mac.

Is this page helpful?

Leave a Reply

Your email address will not be published.