Available in LEADTOOLS Imaging Pro, Vector, Document, and Medical Imaging toolkits. |
LTwain::SetProperties
#include "ltwrappr.h"
virtual L_INT LTwain::SetProperties (pltProperties, uFlags)
pLTWAINPROPERTIES pltProperties; |
/* pointer to a structure */ |
L_UINT uFlags; |
/* optional flags */ |
Sets predefined capabilities of the TWAIN source in the form of properties.
Parameter |
Description |
|
pltProperties |
Pointer to a LTWAINPROPERTIES structure that contains the values to set. |
|
uFlags |
Flags that indicate whether to set or reset the property values. Possible values are: |
|
|
Value |
Meaning |
|
LTWAIN_PROPERTIES_SET |
[1] Set the properties to the values specified in the LTWAINPROPERTIES structure. |
|
LTWAIN_PROPERTIES_RESET |
[2] Set the properties to their default values neglecting the values specified in the LTWAINPROPERTIES structure. In this case the LTWAINPROPERTIES pointer can be NULL since it is not used. |
Returns
SUCCESS |
The function was successful. |
< 1 |
An error occurred. Refer to Return Codes. |
Comments
The function can set the values of the properties to the values specified in the LTWAINPROPERTIES structure or it can reset the values defined in the structure to their default values defined by the TWAIN source.
Required DLLs and Libraries
LTTWN For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application. |
See Also
Functions: |
LTwain::SetPropertyCallBack, LTwain::GetProperties, LTwain::SetCapability, LTwain::GetCapability, LTwain::InitSession, LTwain::EndSession. |
Topics: |
|
|
Example
For an example, refer to LTwain::GetProperties.