DTWAIN_EnumJobControls |
Top Previous Next |
The DTWAIN_EnumJobControls function returns the available job control options when acquiring images.
DTWAIN_BOOL DTWAIN_EnumJobControls (
Parameters Source Specifies an open TWAIN Source.
lpFormats A pointer to a DTWAIN_ARRAY that will be filled with the available job control types
Return Values If job control is supported, TRUE is returned. Otherwise FALSE is returned.
Comments The DTWAIN_EnumJobControls function takes the open Source Source, and returns to the DTWAIN_ARRAY pointed to by lpFormats a list of the supported job control types that the Source can use when acquiring images. Job control allows you to include a job separator when scanning batch jobs. Job control is available on mostly high-speed scanners. To see if job control is supported for your image device, call DTWAIN_IsJobControlSupported.
The DTWAIN_ARRAY that is returned stores LONG values, therefore the call to DTWAIN_ArrayGetAt on the returned DTWAIN_ARRAY must use an LPLONG as the third parameter.
A list of the possible values stored in the DTWAIN_ARRAY can be found in DTWAIN Job Control Constants
TWAIN State Transitions The source must be opened in State 4
Prerequisite Function Call(s)
DTWAIN Source Selection Function
See Also |