GdPicture.NET.14.API
GdPicture14 Namespace / GdPictureImaging Class / TwainGetCapQuerySupport Method
A member of the TwainCapabilities enumeration.
Returns if the source supports Get query with the specified capability.See TwainGetCapCurrentNumeric() and TwainGetCapCurrentString().
Returns if the source supports Set query with the specified capability. See TwainSetCapCurrentNumeric() and TwainSetCapCurrentString().
Returns if the source supports GetDefault query with the specified capability. See TwainGetCapDefaultNumeric() and TwainGetCapDefaultString().
Returns if the source supports GetCurrent query with the specified capability. See TwainGetCapCurrentNumeric() and TwainGetCapCurrentString().
Returns if the source supports Reset query with the specified capability. See: TwainResetCap().





In This Topic
TwainGetCapQuerySupport Method (GdPictureImaging)
In This Topic
Returns the Source’s support status of a specific TWAIN capability.
Syntax
'Declaration
 
Public Function TwainGetCapQuerySupport( _
   ByVal Cap As TwainCapabilities, _
   ByRef SupportGet As Boolean, _
   ByRef SupportSet As Boolean, _
   ByRef SupportGetDefault As Boolean, _
   ByRef SupportGetCurrent As Boolean, _
   ByRef SupportReset As Boolean _
) As Boolean
public bool TwainGetCapQuerySupport( 
   TwainCapabilities Cap,
   ref bool SupportGet,
   ref bool SupportSet,
   ref bool SupportGetDefault,
   ref bool SupportGetCurrent,
   ref bool SupportReset
)
public function TwainGetCapQuerySupport( 
    Cap: TwainCapabilities;
   var  SupportGet: Boolean;
   var  SupportSet: Boolean;
   var  SupportGetDefault: Boolean;
   var  SupportGetCurrent: Boolean;
   var  SupportReset: Boolean
): Boolean; 
public function TwainGetCapQuerySupport( 
   Cap : TwainCapabilities,
   SupportGet : boolean,
   SupportSet : boolean,
   SupportGetDefault : boolean,
   SupportGetCurrent : boolean,
   SupportReset : boolean
) : boolean;
public: bool TwainGetCapQuerySupport( 
   TwainCapabilities Cap,
   ref bool SupportGet,
   ref bool SupportSet,
   ref bool SupportGetDefault,
   ref bool SupportGetCurrent,
   ref bool SupportReset
) 
public:
bool TwainGetCapQuerySupport( 
   TwainCapabilities Cap,
   bool% SupportGet,
   bool% SupportSet,
   bool% SupportGetDefault,
   bool% SupportGetCurrent,
   bool% SupportReset
) 

Parameters

Cap
A member of the TwainCapabilities enumeration.
SupportGet
Returns if the source supports Get query with the specified capability.See TwainGetCapCurrentNumeric() and TwainGetCapCurrentString().
SupportSet
Returns if the source supports Set query with the specified capability. See TwainSetCapCurrentNumeric() and TwainSetCapCurrentString().
SupportGetDefault
Returns if the source supports GetDefault query with the specified capability. See TwainGetCapDefaultNumeric() and TwainGetCapDefaultString().
SupportGetCurrent
Returns if the source supports GetCurrent query with the specified capability. See TwainGetCapCurrentNumeric() and TwainGetCapCurrentString().
SupportReset
Returns if the source supports Reset query with the specified capability. See: TwainResetCap().

Return Value

True if success, else False -> Use TwainGetLastResultCode() and TwainGetLastConditionCode() methods for diagnosing the error.
Remarks
Before using this method check that the TWAIN state is >= 4 (TWAIN_SOURCE_OPEN) To get the TWAIN state, use the TwainGetState() method.
See Also