MagTek Excella Windows API99875313 User Manual

Page 45

Advertising
background image

Section 3. Excella API


37

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)

{

// Display the section Name

DWORD keyCount;

if (MTMICRGetKeyCount (DocInfo, SectionName, &keyCount) ==

MICR_ST_OK)

{

// Display the key count

}

}


}

}

Advertising