ImageGear for C and C++ on Windows v19.8 - Updated
IG_ISIS_drv_send
API Reference Guide > ISIS Component API Reference > ISIS Component Functions Reference > Driver Communication and Setup Functions > IG_ISIS_drv_send

Send a message to a driver's internal data structure.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_ISIS_drv_send(
        HISISDRV hDriver,
        WORD wMessage,
        LONG lParam1,
        LONG lParam2
);

Arguments:

Name Type Description
hDriver HISISDRV The handle of the driver to which the message and parameters are being sent.
wMessage WORD The message to pass to the driver.
lParam1 LONG The first parameter of the message. (Most messages have two parameters.)
lParam2 LONG The second parameter of the message.

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.

Example:

The following example does the functional equivalent of sending a IG_ISIS_tag_set_long function to a driver to set the image width.

 
Copy Code
      IG_ISIS_drv_send(hDriver, IG_ISIS_tag_set_long,
        MAKELONG(IG_ISIS_TAG_IMAGEWIDTH, 0), 2550)

Remarks:

The IG_ISIS_drv_send function calls the message handler of the driver identified by hDriver (hDriver->hData) and passes wMessage, lParam1, and lParam2 to its internal data structure.

Each ISIS driver has a single entry point through which it communicates. This entry point is accessed by sending messages together with parameters using IG_ISIS_drv_send.