LEADTOOLS OCR C DLL Help > Quick Reference > Data Types > OCR Professional > PROGRESSDATA2 |
typedef struct _tagProgressData2
{
L_UINT uStructSize;
DOC2_OCRPROCID Id;
L_INT nPercent;
} PROGRESSDATA2, * pPROGRESSDATA2;
The PROGRESSDATA2 structure provides progress information. The PROGRESSDATA2 structure is used by the PROGRESSCALLBACK2 function.
Member |
Description |
uStructSize |
Structure size. It should be equal to sizeof(PROGRESSDATA2). |
Id |
Identifier of the process currently running. For a list of possible values, refer to DOC2_OCRPROCID. |
nPercent |
Progress of the current process expressed as a percentage. |
Comments
pPROGRESSDATA2 is a pointer to a PROGRESSDATA2 structure. If the function parameter type is pPROGRESSDATA2, declare a PROGRESSDATA2 variable, update the structure's fields, and pass the variable's address in the parameter. Declaring a pPROGRESSDATA2 variable is necessary only if the program requires a pointer.
This structure will be filled only when PROGRESSCALLBACK2 is called. The PROGRESSCALLBACK2 function will be called if you have set a callback function with L_Doc2SetProgressCB.