ImageGear Professional DLL v17.1 for Windows Accusoft
IG_TWAIN_CB_register
Send Feedback  
ImageGear Professional DLL v17.1 for Windows > API Reference Guide > TWAIN Component API Reference > TWAIN Component Functions Reference > General Functions > IG_TWAIN_CB_register

Glossary Item Box

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:

lpfnTwainCB A FAR pointer to the scan callback function you would like to register.
nCBType

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 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.

©2012. Accusoft Corporation. All Rights Reserved.