DAPI_FNErrorCallback

The DAPI_FNErrorCallback function is invoked by the BatchExport or BatchImport function each time an error is encountered during an export or import operation, respectively.

Quick Info

Header file: DAPI.H
Library: DAPI.LIB

BOOL DAPI_FNErrorCallback(
  LPVOID lpvAppDefined,  
  PDAPI_EVENT pDapiEvent 
);
 

Parameters

lpvAppDefined
Input parameter. Points to an application-defined parameter, passed in the EXPORT_CALLBACK structure on initialization. This parameter can be used to distinguish between different invocations of directory access functions.
pDapiEvent
Input parameter. Points to a DAPI_EVENT structure describing the event log error. The data in the event record is not valid after this function returns.

Return Values

TRUE
The operation completed successfully.
FALSE
Aborts the import or export operation.

Remarks

The DAPI_FNErrorCallback function is based on the DAPI_FNErrorCallback prototype.

If your application provides its own error handler, set the lpBexportParms->ErrorCallback parameter members of the BatchExport and BatchImport functions to point to this function.

For more information on this function, see Using Directory Access Functions.

See Also

InitProgressProc, UpdateProgressProc