10350 Santa Monica Blvd. Suite 285, Los Angeles, CA 90025
Phone: 310-691-8920, 310-788-9840, Fax: 419-735 -2419
Card Scanning Solutions
45
1.1.51.
IsReaderValid
Format
Return
MAG_ERR_NO_READER_FOUND
: The reader is not connected to the PC.
MAG_ERR_NONE
: The reader is connected to the PC and functioning correctly.
Remarks
Detect if the Magnetic Reader hardware is connected and functioning. The reader is searched in the
COM port found in
InitLibrary
function.
1.1.52.
WasCardSweeped
Format
Return
MAG_ERR_NO_READER_FOUND
: The reader is not connected to the PC.
SERIAL_NOT_INIT:
Serial port is not initialized.
SERIAL_PORT_NOT_OPEN:
Serial port could not be opened.
SERIAL_PORT_CONFIG_FAIL:
COM Port configuration failed.
SERIAL_COM_TIMEOUT_FAIL:
COM Port timeout failure.
MAG_ERR_CARD_NOT_DETECTED:
No new card swipe was detected from the last call to this
function.
MAG_ERR_CARD_DETECTED :
A recent card swipe was detected and the data is available for
process.
Remarks
Call this function periodically to find out if a new card swipe was performed. If no new swipe was
performed, the function returns
MAG_ERR_CARD_NOT_DETECTED.
If the reader detects a new
swipe it returns
MAG_ERR_CARD_DETECTED
. If the system is in error condition (due to bad
initialization or disconnection of the reader from the PS) the function return one of the other values.
IsReaderValid () As Long
WasCardSweeped () As Long