Platform SDK: Exchange Server |
The file-based batch processing functions of the directory access functions invoke a progress callback function based on the InitProgressProc prototype to initialize a user-defined progress display.
Header file: | DAPI.H |
Library: | DAPI.LIB |
BOOL (* InitProgressProc)( LPVOID lpvAppDefined, INT nMac );
Return FALSE if the user cancels the operation; otherwise, return TRUE.
You should allocate any memory or resources you need and display your dialog box or custom control in InitProgressProc.
If nMac is 0, the display shows only that n items have been processed, as opposed to showing the progress as a portion of the total processing to be performed.
If nMac is 50, for example, and if the application displays a progress bar that is 500 pixels across, the display width could be broken into increments of 10 pixels, to have the display updated each time the UpdateProgressProc function is called.
For more information on this function, see Using Directory Access Functions.
BatchExport, BatchImport, BEXPORT_PARMS, BIMPORT_PARMS, CALLBACKPROGRESS, EndProgressProc, NTExport, NTEXPORT_PARMS, NWExport, NWEXPORT_PARMS, ResetProgressProc, UpdateProgressProc