DTWAIN_EnumSupportedCaps

Top  Previous  Next

The DTWAIN_EnumSupportedCaps function creates and fills a DTWAIN_ARRAY with all of a Source's supported capabilities.

 

DTWAIN_BOOL DTWAIN_EnumSupportedCaps (

DTWAIN_SOURCE

Source,

LPDTWAIN_ARRAY

Array );

 

Parameters

Source

Specifies an open TWAIN Source.

 

Array

A pointer to a DTWAIN ARRAY containing the capabilities retrieved.

 

Return Values

If the function succeeds, TRUE is returned.  If the function fails, FALSE is returned.

 

Comments

The DTWAIN_EnumSupportedCaps function fills the DTWAIN_ARRAY located at address Array with all of the device capabilities supported by the Source Source.  The data type for the capability constants that will be stored in the DTWAIN_ARRAY are all type LONG.

 

Note that the Source should be an opened Source.

 

TWAIN State Transitions

The source must be opened in State 4

 

Prerequisite Function Call(s)

DTWAIN_SysInitialize

 

DTWAIN Source Selection Function

 

 

See Also

Setting / Getting Twain Capabilities