Removing a device (wnt/2000/xp), Mtd programming examples – MagTek 99875125 User Manual

Page 107

Advertising
background image

Appendix A. Installation and Setup

Name

Use

baud

(optional, used for serial devices only) device’s baud rate, specified as an
integer (e.g., 9600)

parity

(optional, used for serial devices only) an integer specifying the parity used
by the device: use -1, 0, 1, 2, or 3 for None, Even, Odd, Space and Mark
parity respectively.

datasize

(optional, used for serial devices only) specifies the device’s serial word size
in bits: 7 or 8.

stopbits

(optional, used for serial devices only) stop bits to use on transmission: 1 or
2.

UsePort

the serial port to which the device is connected. Must specify a valid
standard serial port (or a port that is 100% compatible with a standard serial
port).

FriendlyName

(optional) alternative name for the device. If specified, the device may be
opened from user mode using this name (the prefix \\.\ must be added to the
name. For example if FriendlyName=Port-powered swipe reader, this device
can be opened as “\\.\Port-powered swipe reader”)

EnableFDP

(optional) Enable Flexible Data Parsing. Set this to 1 to enable data parsing
and to 0 to disable data parsing.

PortName

Specifies the port name under which the device is visible to user-mode
applications. Modifying this setting also changes the name used to refer to
this device when using the MTCFG utility, e.g., if
mtcfg COM5 PortName=COM8
is executed, the device that was COM5, must be referred to as COM8 in any
subsequent invocations of MTCFG. This setting is treated specially by
MTCFG

−it will validate the port name and make sure that it is not used by

other MagTek devices before making the change.

Device settings other than the ones listed above should not be modified without carefully
reviewing the driver’s engineering documentation for the specific device model.

Removing a Device (WNT/2000/XP)

To remove a MagTek device use the following command syntax:

mtcfg

port-name -delete

The device is removed and all non-default settings specified for it are lost.

This operation does not remove any files from the system. To remove all devices and uninstall the
MTD driver, follow the instructions in the next section.


MTD PROGRAMMING EXAMPLES

Example programs are included in the following directory:

99

Advertising