Here is a common sequence of plugin functions calls and what program functions the plugin can call.
Algorithm:
-->SetProcessDataProcW (deprecated function, which gets executed if presents in the plugin)
-->ArcDeleteFilesW
During processing the plugin calls periodically <--ArcProcessDataProcW