- This topic has 1 reply, 1 voice, and was last updated 13 years, 10 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
The TWAIN Resource site is designed to help TWAIN users and prospective users find resources in the community for TWAIN-related products and services. Become a member.
Home › Forums › TWAIN Classic › "Waking up" scanner from power save?
Hi,
I was wondering how I could wake up a scanner from power save mode without using TWAIN 2.0 if possible.
This is not done automatically because when I open a power saved data source, the open operation simply fails.
I tried this code, but get an error:
TW_CAPABILITY capabilityToGet;
capabilityToGet.Cap = CAP_DEVICEEVENT;
DSM_Entry(&myApp, &dsource, DG_CONTROL, DAT_CAPABILITY, MSG_QUERYSUPPORT, (TW_MEMREF)&capabilityToGet);
int code = TWAIN_GetResultCode();
int conCode = conditionCode();
‘code’ becomes 1 and conCode is 0.
Any ideas? I have seen another application do this automatically.
Thanks.
Nevermind, it is waking up from standby automatically now.
I am confused, but okay…