TwainControllerSendCommand Method (Int32, Int32, Int32, TwainIdentity, ITwainDataStructure) |
Sends a command triplet that may not be contained in the
TwainTriplet enumeration.
Namespace:
Atalasoft.Twain
Assembly:
Atalasoft.DotTwain (in Atalasoft.DotTwain.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax public TwainReturnCode SendCommand(
int dataGroup,
int dataArgument,
int message,
TwainIdentity deviceIdentity,
ITwainDataStructure data
)
Public Function SendCommand (
dataGroup As Integer,
dataArgument As Integer,
message As Integer,
deviceIdentity As TwainIdentity,
data As ITwainDataStructure
) As TwainReturnCode
Parameters
- dataGroup
- Type: SystemInt32
A command data group. Normally this will be TwainDataGroupFlags.DG_CONTROL. - dataArgument
- Type: SystemInt32
Indicates the type of object being passed as the data parameter. - message
- Type: SystemInt32
The type of message being sent. - deviceIdentity
- Type: Atalasoft.TwainTwainIdentity
The device, if any to send the message to. When sending the message to the source
manager this value should be null (Nothing in Visual Basic). - data
- Type: Atalasoft.TwainITwainDataStructure
A class implementing the ITwainDataStructure interface that will retrieve or
contains data relevant to this command.
Return Value
Type:
TwainReturnCode The return code received from TWAIN.
See Also