DTWAIN_GetDeviceEventInfo
The DTWAIN_GetDeviceEventInfo gets information related to the last device event that occurred.
DTWAIN_BOOL DTWAIN_GetDeviceEventInfo (
Parameters Source An open TWAIN Source.
WhichInfo A Value denoting which event information to retrieve.
lpValue A Value denoting which event information to retrieve.
Return Values The return value is TRUE if successful. Otherwise FALSE is returned.
Comments The DTWAIN_GetDeviceEvent function gets information with respect to the last device event that the Source Source has detected. The DTWAIN_GetDeviceEventInfo function is usually called when the DTWAIN_TN_DEVICEEVENT notification is sent to the application window.
The WhichInfo parameter is a LONG that denotes the device information desired. Below is a list of the WhichInfo values and their definitions.
The lpValue is the address of the variable that will receive the value. Each event defined by WhichInfo returns a value that is a certain type. Below is a list of variable types that are returned:
The DTWAIN_GetDeviceEventInfo should be used if the application needs to know extra information about an event if the application is sure that DTWAIN_GetDeviceEventEx is not giving the extra information for a device event. This may occur if a Source decides to give extra information about a device event that DTWAIN is not aware of.
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 |