How to monitor the progress of an index update in C++.
To monitor the progress of an IndexJob in the C++ API:
(1) Derive a class from DIndexJob and
(2) Implement a virtual function, OnProgressUpdate(dtsIndexProgressInfo& info) to receive notifications.
Each time OnProgressUpdate is called, the dtsIndexProgressInfo.updateType will indicate the reason for the notification. The updateType is a MessageCode value that indicates when, for example, a file was successfully indexed (dtsnIndexFileDone) or could not be indexed due to an error (dtsnIndexFileOpenFail, dtsnIndexFileEncrypted). Example: