DTWAIN_GetCapOperations

Top  Previous  Next

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

 

DTWAIN_BOOL DTWAIN_GetCapOperations (

DTWAIN_SOURCE

Source,

LONG

Capability,

LPLONG

lpOperations );

 

Parameters

Source

An open TWAIN Source.

 

Capability

The capability that is to be queried for the operations.

 

lpOperations

Address of a LONG that will retrieve the operations supported.

 

Return Values

The return value is TRUE if successful.  Otherwise FALSE is returned.

 

Comments

The DTWAIN_GetCapOperations function gets a Source's device capability available operations for a capability Capability.  The operations are returned in the address lpOperations. One or more of the following values Boolean ORed will define the returned operations together:

 

Capability Operation                

Definition

 

DTWAIN_CO_GET        

Cap supports DTWAIN_CAPGET

DTWAIN_CO_GETCURRENT

Cap supports DTWAIN_CAPGETCURRENT

DTWAIN_CO_GETDEFAULT

Cap supports DTWAIN_CAPGETDEFAULT

DTWAIN_CO_SET                

Cap supports DTWAIN_CAPSET

DTWAIN_CO_SETCONSTRAINT

Cap supports DTWAIN_CAPSETCONSTRAINT

DTWAIN_CO_RESET

Cap supports DTWAIN_CAPRESET

DTWAIN_CO_CONSTRAINABLE

Cap can constrain values

DTWAIN_CO_GETHELP

Cap has available help text

DTWAIN_CO_GETLABEL

Cap has available label text

DTWAIN_CO_GETLABELENUM

Cap has multiple label text

 

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