Platforms to show: All Mac Windows Linux Cross-Platform

Back to WindowsFileCopyMBS class.

WindowsFileCopyMBS.Progress(TotalFileSize as int64, TotalBytesTransferred as int64, StreamSize as int64, StreamBytesTransferred as Int64, StreamNumber as Integer, Reason as Integer) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Windows MBS Win Plugin 9.2 ❌ No ✅ Yes ❌ No ❌ No
It is called when a portion of a copy or move operation is completed.

This event is called by the CopyFileEx and the MoveFileWithProgress methods.

TotalFileSize: The total size of the file, in bytes.
TotalBytesTransferred: The total number of bytes transferred from the source file to the destination file since the copy operation began.
StreamSize: The total size of the current file stream, in bytes.
StreamBytesTransferred: The total number of bytes in the current stream that have been transferred from the source file to the destination file since the copy operation began.
StreamNumber: A handle to the current stream. The first time CopyProgressRoutine is called, the stream number is 1.
Reason: CallbackChunkFinished or CallbackStreamSwitched.

Return ProgressCancel, ProgressStop, ProgressContinue or ProgressQuiet.
If you use multithreading option, you may receive additional events after you cancelled or stopped the operation due to the events coming asynchronously.

The items on this page are in the following plugins: MBS Win Plugin.


The biggest plugin in space...