ICMProgressProcCallback

[This is preliminary documentation and subject to change.]

The ICMProgressProcCallback function is an application-supplied callback function that reports progress and permits the application to cancel color processing.

BOOL WINAPI ICMProgressProcCallback(
  ULONG ulMax,
  ULONG ulCurrent,
  ULONG ulCallbackData
);
 

Parameters

ulMax
Specifies the maximum value of the progress counter (used to estimate completion of the bitmap processing).
ulCurrent
Specifies the current value of the progress counter (when divided by the maximum value, provides a rough estimate of percentage of completion).
ulCallbackData
Specifies the data which is passed by the application to an ICM function, which then passes it on to the callback function. Such data can be used, for example, to identify the bitmap and process about which progress is being reported.

Return Values

This function returns TRUE to continue bitmap processing. The return value is FALSE to cancel processing. If processing is canceled, the calling function returns zero to indicate failure, although its output buffer may be partially filled.

Remarks

The name of this callback function is supplied by the application. A number of ICM functions, including TranslateBitmapBits and CheckBitmapBits, call this function periodically.

QuickInfo

  Windows NT: Requires version 5.0 or later.
  Windows: Requires Windows 98.
  Windows CE: Unsupported.
  Header: Declared in icm.h.
  Import Library: User-defined.

See Also

Color Management Overview, ICM 2.0 Functions, TranslateBitmapBits, CheckBitmapBits