DEVICE DRIVERS
msrRaw
40 M
X
800 SERIES PROGRAMMERS GUIDE
msrRaw
Allows an application to retrieve the raw magnetic stripe data and perform a
custom decode.
Prototype
int result = msrRaw(MSR_DATA * msr);
Parameters
The MSR_DATA structure is as follows:
typedef struct {
unsigned char ucStatus; // status of track
unsigned char ucCount; // size in bytes of track data
char *cpData; // pointer to track data
} MSR_TRACK_DATA;
typedef struct {
MSR_TRACK_DATA stTrack1;
MSR_TRACK_DATA stTrack2;
MSR_TRACK_DATA stTrack3;
} MSR_DATA;
Return Values
0 Data available
-1 No data available