DTWAIN_GetCapOperationsEx

Top  Previous  Next

The DTWAIN_GetCapOperationsEx function gets the operations (GET, GETDEFAULT, SET, etc.) that are supported by a capability.

 

LONG DTWAIN_GetCapOperationsEx (

DTWAIN_SOURCE

Source,

LONG

Capability );

 

Parameters

Source

An open TWAIN Source.

 

Capability

The capability that is to be queried for the operations.

 

Return Values

If successful, the operations supported by the capability.  On failure, 0 is returned.  Call DTWAIN_GetLastError() to get extended information.

 

Comments

The DTWAIN_GetCapOperationsEx performs the same functions as DTWAIN_GetCapOperations, with the only difference being that the operations are returned as a LONG instead of the client having to provide a pointer to a LONG.  

 

TWAIN State Transitions

The Source must be in State 4 or higher (depending on the capability).

 

Prerequisite Function Call(s)

DTWAIN_SysInitialize

 

DTWAIN Source Selection Function

 

 

See Also

Setting / Getting Twain Capabilities