Mtmicrgetindexvalue, Parameters, Return values – MagTek Excella Windows API99875313 User Manual
Page 32: Example

Excella Windows API Specifications
24
MTMICRGetIndexValue
MTMICRGetIndexValue
function retrieves a key/value pair that was previously stored in the pcDocInfo
parameter. MTMICRGetIndexValue function is similar to the function MTMICRGetValue.
MTMICRGetIndexValue function adds index to the key name before searching for the value of the key name
pcKey in the pcDocInfo
.
ULONG MTMICRGetIndexValue (
char
*pcDocInfo,
char
* pcSection,
char
*pcKey,
unsigned int
nIndex,
char
*pcValue,
DWORD
*pdwLength
);
Parameters
pcDocInfo
Buffer pointer containing all the key/value pairs.
pcSection
Pointer to null terminated string containing the section name
.
pcKey
Pointer to null terminated string containing the key name
.
nIndex
Key Index Number
pcValue
Pointer to the buffer that receives the retrieved value
.
pdwLength
Specifies the size of the buffer pointed to by the pcValue parameter
.
Return Values
MICR_ST_OK
MICR_ST_NOT_ENOUGH_MEMORY
MICR_ST_BAD_PARAMETER
MICR_ST_ERR_LOAD_XML
MICR_ST_ERR_GET_DOM_POINTER
Example
char Settings [4096];
char DocInfo [4096];
char device[4096] ="";
DWORD SettingsBufferSize;
DWORD DocInfoSize;
char cValue [1024];
DWORD valueSize;
DWORD dwStatus;