cURL / Mailing Lists / curl-library / Single Mail


Device connect check

From: Jaepil <>
Date: Fri, 16 Mar 2001 12:09:28 +1300

Hi i would like to check the physical connection
before i continue to image transfer.

I understand that i must check as stage 4, just after
data source is opened.

I just wrote following code. Can any one tell me if
i'm on a right track?

int IsDeviceOnline(void)
 // Set up native transfer
 int status = TWRC_FAILURE;

 cap.ConType = TWON_ONEVALUE;

 status = TwainMgr( DG_CONTROL, DAT_CAPABILITY, MSG_GET, &cap);

 return status;
º&jj)b bЮ_剺گ/l.ǟwil.ǟwXb?rX
Received on 2001-03-16