> I finally cracked the code the other day and got an indirect
> synchronization to work. Now I'm wondering if there are any
[quoted text clipped - 5 lines]
> to click a command button). When the sync is finished, I'd like
> to shut down the synchronizer and let the user know the results.
There are two approaches to this:
1. use the TSI Synchronizer and use its HistoryItems collection, OR
2. poll the Exchange History table for the last record and check the
Status field. When it's 0 the synch hasn't started. When it's 1,
it's in progress. When it's 2, it's complete with no errors. When
it's 3 it is complete, but something went wrong.
I use #1 because you can be sure you're getting the status for the
right record (which you can't with the 2nd method). The result is
the same, you loop checking the SynchStatus property of the history
item, and exit the loop when it's not 0 or 1. A hint: use DoEvents
in the loop to give up control to the OS so that other events can be
processed. If you don't the PC slows down a lot.

Signature
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/