10350 Santa Monica Blvd. Suite 285, Los Angeles, CA 90025
Phone: 310-691-8920, 310-788-9840, Fax: 419-735 -2419
Card Scanning Solutions
44
Library MagLib: General Functionality
MagLib controls the magnetic reader, collect and analyses its data once a card was swiped. The library
scans COM1-COM16 for the existence of the magnetic reade r and initializes it. Once a magnetic card
is swiped, the data is parsed and refresh the relevant properties of the library. The library automatically
detects the data format and parses it. The following driver license formats are supported:
AAMVA
Old DMV (California)
Old DMV (Louisiana).
MagLib Library Functions
1.1.50.
InitLibrary
Format
Parameters
[in]
License
– Null terminated string that holds license key value.
Return
LICENSE_VALID
: License is valid and the library is ready to be used.
LIC ENS E_INVALID
: The license is invalid. All scanner operations are disabled.
LICENSE_EXPIRED
: License has expired. All scanner operations are disabled.
LICENSE_DOES_NOT_MATCH_LIBRARY
: The license is invalid for this library. All library
operations are disabl ed.
GENERAL_ERR_PLUG_NOT_FOUND
: This error returns if the attached scanner is not one of the
following scanners:
ScanShell 600
ScanShell 800
ScanShell 1000
MAG_ERR_NO_READER_FOUND
: The magnetic reader device could not be found on any of the
PC ports.
Remarks
This function scan COM1-COM16 and search for the magnetic reader device. Once found, the reader is
initialized and the library loads and initialized.
InitLibrary
(
License
As String) As Long