curl-library
Device connect check
From: Jaepil <pit_at_paradise.net.nz>
Date: Fri, 16 Mar 2001 12:09:28 +1300
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
TW_CAPABILITY cap;
int status = TWRC_FAILURE;
cap.Cap = CAP_DEVICEONLINE;
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