Sets the value of the specified capability.
L_LTTWN_API L_INT L_TwainSetCapability (hSession, pCapability, uFlags)
Handle to an existing TWAIN session. This handle is obtained by calling the L_TwainInitSession or L_TwainInitSession2 function.
Pointer to the TW_CAPABILITY structure that references the capability value to set. This structure must be allocated and filled with data corresponding to the required capability before passing it to the function.
Flags that indicate whether to set or reset the capability value. Possible values are:
|LTWAIN_CAPABILITY_SET|| Set the capability to the value specified in pCapability.|
|LTWAIN_CAPABILITY_RESET|| Reset the value of the capability to the default value defined by the TWAIN source. In this case the pCapability can be NULL since it is not needed.|
|SUCCESS||The function was successful.|
|! = SUCCESS||An error occurred. Refer to Return Codes.|
To enable duplex scanning, set the CAP_DUPLEXENABLED option in the TW_CAPABILITY structure passed to this function.
This function must be called after L_TwainStartCapsNeg is called and before L_TwainEndCapsNeg is called.
For an example, refer to L_TwainAcquire.
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms