DTWAIN_GetDeviceEvent
The DTWAIN_GetDeviceEvent function gets the last device event that occurred.
DTWAIN_BOOL DTWAIN_GetDeviceEvent (
Parameters Source An open TWAIN Source.
lpDeviceValues Address of LONG to store the last device event that occurred.
Return Values The return value is TRUE if successful. Otherwise FALSE is returned.
Comments The DTWAIN_GetDeviceEvent function gets the last device event that the Source Source has detected. The lpDeviceValues address points to a LONG that will be filled in with the last device event that occurred. The DTWAIN_GetDeviceEvent function is usually called when the DTWAIN_TN_DEVICEEVENT notification is sent to the application window.
The device event will be equal to one of the values defined below:
Depending on the event that occurred, extra information can be retrieved concerning the event. The DTWAIN_GetDeviceEventEx function will return any extra device event information with respect to the last event that occurred.
For more information on device events, see the topic Capturing Source Device Events.
TWAIN State Transitions The Source must be in State 4 or higher
Prerequisite Function Call(s)
DTWAIN Source Selection Function
See Also |