ImageGear for C and C++ on Windows v19.9 - Updated
IG_TWAIN_CB_register
API Reference Guide > TWAIN Component API Reference > TWAIN Component Functions Reference > General Functions > IG_TWAIN_CB_register

This function registers one of the seven available scan callback functions.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_TWAIN_CB_register(
        LPVOID lpfnTwainCB,
        AT_MODE nCBType,
        LPVOID lpData
);

Arguments:

Name Type Description
lpfnTwainCB LPVOID A FAR pointer to the scan callback function you would like to register.
nCBType AT_MODE

Set to the type of callback being registered. Use one of the following ImageGear-defined constants:

  • IG_TW_CBT_BEFORE_PAGE
  • IG_TW_CBT_AFTER_TRANSFORM_PAGE
  • IG_TW_CBT_BEFORE_DOC
  • IG_TW_CBT_AFTER_DOC
  • IG_TW_CBT_CAP_SET_5
  • IG_TW_CBT_DEVICE_EVENT
lpData LPVOID Optional pointer from which to pass and receive data. Set to NULL if you don't need to do this.

Return Value:

Returns the number of ImageGear errors that occurred during this function call. If there are no errors, the return value is IGE_SUCCESS.

Supported Raster Image Formats:

This function does not process image pixels.