Home | Info | Community | Development | myReactOS | Contact Us
Definition at line 351 of file dsm_ctrl.c.
Referenced by TWAIN_SourceManagerHandler().
{ #ifndef HAVE_SANE return TWRC_FAILURE; #else TW_UINT16 twRC = TWRC_SUCCESS; SANE_Status status; SANE_Int version_code; TRACE("DG_CONTROL/DAT_PARENT/MSG_OPENDSM\n"); if (DSM_currentState == 2) { if (!DSM_initialized) { DSM_initialized = TRUE; status = sane_init (&version_code, NULL); device_list = NULL; DSM_currentDevice = 0; DSM_sourceId = 0; } DSM_parentHWND = *(TW_HANDLE*)pData; DSM_currentState = 3; /* transition to state 3 */ DSM_twCC = TWCC_SUCCESS; twRC = TWRC_SUCCESS; } else { /* operation invoked in invalid state */ DSM_twCC = TWCC_SEQERROR; twRC = TWRC_FAILURE; } return twRC; #endif }