MagTek Excella Windows API99875313 User Manual

Page 43

Advertising
background image

Section 3. Excella API


35

DWORD dwStatus;

// Intialize Settings

DocInfoSize = 4096;

// Use function MTMICRGetDevice to get device name for variable “device”
// Call MTMICRProcessCheck function to process a document.
dwStatus = MTMICRProcessCheck (device, Settings, DocInfo, &DocInfoSize);

if (dwStatus == MICR_ST_OK)
{

// Let us scan through all the key pair values returned in the DocInfo
DWORD sectionCount;
DWORD sectionIndex;
// Get total number of sections
if (MTMICRGetSectionCount (DocInfo, &sectionCount) ==MICR_ST_OK)
{

for (sectionIndex = 0; sectionIndex < sectionCount; sectionIndex)
{

char SectionName [128];

DWORD SectionNameSize = 128;

if (MTMICRGetSectionName(DocInfo, sectionIndex, SectionName, &SectionNameSize)

== MICR_ST_OK)

{

}

}


}

}

Advertising