Gets a string that contains the ID for currently selected device.
public string GetSelectedDevice()
Public Function GetSelectedDevice() As String
String that contains the ID for currently selected device. If an error occurs, an exception is thrown.
Call this function to get a string that represents the ID for the currently selected device.
|If you are using the AcquireSimple method to automatically acquire from your device then it is not necessary to call either of the two mentioned functions above before calling the GetSelectedDevice since AcquireSimple method internally calls the SelectDeviceDlg method and this will assure you have a device currently selected.|
Refer to WiaSession.EnumDevices