Tracking Defragmentation Errors

DefragmentListener/IDefragmentListener interface is provided to track system structure problems during a defragmentation process. DefragmentListener provides the following method, which will be called, when a problem is detected:

.NET:

void NotifyDefragmentInfo(DefragmentInfo info);

For an example of the listener implementation see Defragmentation Examples.