Mtuscraopendevice, Mtuscraclosedevice, Mtuscrasendcommand – MagTek Secure Card Reader User Manual
Page 7

3
SECTION 2. SECURE CARD READER AUTHENTICATOR API
MTUSCRAOPENDEVICE
This function opens a SCRA Swipe Reader
Syntax
MTUSCRA_API DWORD WINAPI MTUSCRAOpenDevice(LPSTR lpDeviceName);
Parameter
Name of the device to open for future use. Current users should pass an empty string.
lpDeviceName
Return Values:
Please see EErrorValues
MTUSCRACLOSEDEVICE
This function closes currently opened SCRA Swipe Reader
Syntax
MTUSCRA_API DWORD WINAPI MTUSCRACloseDevice();
Return Values:
Please see EErrorValues
MTUSCRASENDCOMMAND
This function
Allows sending command to the SCRA Swipe dreader
Syntax
MTUSCRA_API DWORD WINAPI MTUSCRASendCommand(LPSTR lpCmd, DWORD
lpdwCmdLen,LPSTR lpResult, DWORD lpdwResultLen);
Parameter
Command to send to the device
lpCmd
Buffer to receive result
lpResult
Length of the Command
lpdwCmdLen
Size of lpResult
DWORD lpdwResultLen
Return Values:
Please see ErrorValues