DTWAIN_EnumSupportedCapsEx

Top  Previous  Next

The DTWAIN_EnumSupportedCapsEx function returns a DTWAIN_ARRAY with all of a Source's supported capabilities.

 

DTWAIN_ARRAY DTWAIN_EnumSupportedCapsEx ( DTWAIN_SOURCE Source );

 

Parameters

Source

Specifies an open TWAIN Source.

 

 

Return Values

If the function succeeds, a DTWAIN_ARRAY is returned that contains all of the supported capabilities.  If the function fails, a NULL DTWAIN_ARRAY is returned.  On failure, DTWAIN_GetLastError() should be called to determine the reason for the failure.

 

Comments

The DTWAIN_EnumSupportedCapsEx2 function performs the same function as DTWAIN_EnumSupportedCaps(), with the difference being that the DTWAIN_ARRAY is returned instead of the program having to provide a pointer to the DTWAIN_ARRAY.  

 

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