GetBarCodePos 

Overview

int STGetBarCodePos(void *hBarcode, int nBarCode, uint32 *TopLeftX, uint32 *TopLeftY, uint32 *BotRightX, uint32 *BotRightY)

STGetBarCodePos retrieves the page number and coordinates of the rectangle bounding the barcode.

hBarcode Handle to barcode session.
nBarCode (input) is the index of the barcode (zero based).
TopLeftX (output) is a pointer to receive the x-coordinate of the top left hand corner of the bounding rectangle.
TopLeftY (output) is a pointer to receive the y-coordinate of the top left hand corner of the bounding rectangle.
BotRightX (output) is a pointer to receive the x-coordinate of the bottom right hand corner of the bounding rectangle.
BotRightY (output) is a pointer to receive the y-coordinate of the bottom right hand corner of the bounding rectangle.

Return Value

Page number where the barcode was found (one based).