Interfacing to applications, Interfacing to the device, Supported device classes – MagTek OMTD 99875144 User Manual

Page 8

Advertising
background image

OMTD

OPOS

for

MagTek

Devices


2

Each CO implements the following standard OLE control interfaces thereby making the
control Microsoft OLE compliant: IDispatch, IViewObject2, IOleInPlaceObject, IOleObject,
IPersistStorage, IDataObject, and IProvideClassInfo.

Exposes OPOS-specific device class methods and properties through the IDispatch interface.

Each CO implements all OPOS-specific functionality for a specific device class as defined
by the OPOS Specification.

A CO will only support MagTek SO(s).

The SO implements the following standard OLE interfaces: IUnknown, IClassFactory, and
IDispatch.

The SO implements a union of all supported OPOS device class interfaces.

The SO implements the OPOS functionality by sending commands to the MTD driver using
the Win32 File IO API.

Interfacing to Applications

The OPOS Specification defines a common architecture for interfacing Windows applications
with a variety of POS devices. The CO is loaded and created by the host application or container
class whenever it needs to interact with the supported device. If an application needs to access a
combo device (one that supports multiple device classes), the application is required to create
and open several different control objects, one for each base class functionality that the device
supports.

Interfacing to the Device

The CO loads and creates a SO in response to an application requesting a device to be opened.
The CO invokes methods on the SO to request implementation of OPOS-specific functionality.
In response, the SO sends one or more commands to the MTD driver using the Win32 File IO
API to access the device functionality.

Supported Device Classes

The following OPOS device classes are supported by the SO:

MSR (Magnetic Stripe Reader, e.g., Port Powered Swipe Reader, MiniWedge Swipe Reader)

Advertising