Share via


PosCommon.DirectIO Method

Namespace: Microsoft.PointOfService
Assembly: Microsoft.PointOfService (in microsoft.pointofservice.dll)

Usage

'Usage
Dim command As Integer
Dim data As Integer
Dim obj As Object
Dim returnValue As DirectIOData
Dim posCommon1 As PosCommon
returnValue = posCommon1.DirectIO(command, data, obj)

Syntax

'Declaration
Public MustOverride Function DirectIO( _
    ByVal command As Integer, _
    ByVal data As Integer, _
    ByVal obj As Object _
) As DirectIOData
public abstract DirectIOData DirectIO(
    int command,
    int data,
    object obj
);
public: abstract DirectIOData^ DirectIO(
    Int32 command,
    Int32 data,
    Object^ obj
);
public abstract DirectIOData DirectIO(
    int command,
    int data,
    System.Object obj
);
public abstract function DirectIO(
     command : int,
     data : int,
     obj : Object
) : DirectIOData;

Parameters

  • command
    Command number. Specific values assigned by the service object.
  • data
    Additional numeric data. Specific values vary by command and the service object.
  • obj
    Additional data supplied by the service object. Specific values vary by command and by what the service object chooses to transmit.

Remarks

The application calls DirectIO to communicate directly with the service object.

Using DirectIO allows a service object to provide functionality to the application that is not otherwise supported by the standard service object for its device class. Depending on the service object’s definition of the command, DirectIO may be asynchronous or synchronous.

DirectIO returns an instance of the DirectIOData class.

Note

Use of DirectIO will make an application non-portable. The application may, however, maintain portability by performing DirectIO calls within conditional code. This code can be based on the value of the ServiceObjectDescription, ServiceObjectVersion, DeviceDescription, or DeviceName properties.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, and Windows 2000

Target Platforms

See Also

Reference

PosCommon Class
PosCommon Members
Microsoft.PointOfService Namespace
DirectIOData