DelegatesCopyProgressRoutine Delegate
Namespace: DevCase.Win32.DelegatesAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public delegate CopyFileProgressAction CopyProgressRoutine(
ulong totalFileSize,
ulong totalBytesTransferred,
ulong streamSize,
ulong streamBytesTransferred,
int streamNumber,
CopyFileProgressCallbackReason callbackReason,
IntPtr hSourceFile,
IntPtr hDestinationFile,
IntPtr data
)
Public Delegate Function CopyProgressRoutine (
totalFileSize As ULong,
totalBytesTransferred As ULong,
streamSize As ULong,
streamBytesTransferred As ULong,
streamNumber As Integer,
callbackReason As CopyFileProgressCallbackReason,
hSourceFile As IntPtr,
hDestinationFile As IntPtr,
data As IntPtr
) As CopyFileProgressAction
Dim instance As New CopyProgressRoutine(AddressOf HandlerMethod)
public delegate CopyFileProgressAction CopyProgressRoutine(
unsigned long long totalFileSize,
unsigned long long totalBytesTransferred,
unsigned long long streamSize,
unsigned long long streamBytesTransferred,
int streamNumber,
CopyFileProgressCallbackReason callbackReason,
IntPtr hSourceFile,
IntPtr hDestinationFile,
IntPtr data
)
type CopyProgressRoutine =
delegate of
totalFileSize : uint64 *
totalBytesTransferred : uint64 *
streamSize : uint64 *
streamBytesTransferred : uint64 *
streamNumber : int *
callbackReason : CopyFileProgressCallbackReason *
hSourceFile : IntPtr *
hDestinationFile : IntPtr *
data : IntPtr -> CopyFileProgressAction
No code example is currently available or this language may not be supported.
- totalFileSize UInt64
-
The total size of the file, in bytes.
- totalBytesTransferred UInt64
-
The total number of bytes transferred from the source file to the destination file since the copy operation began.
- streamSize UInt64
-
The total size of the current file stream, in bytes.
- streamBytesTransferred UInt64
-
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 Int32
-
A handle to the current stream.
The first time DelegatesCopyProgressRoutine is called, the stream number is 1.
- callbackReason CopyFileProgressCallbackReason
-
The reason that DelegatesCopyProgressRoutine was called.
- hSourceFile IntPtr
-
A handle to the source file.
- hDestinationFile IntPtr
-
A handle to the destination file.
- data IntPtr
-
Argument passed to DelegatesCopyProgressRoutine by CopyFileEx(String, String, DelegatesCopyProgressRoutine, IntPtr, Boolean, CopyFileFlags),
MoveFileTransacted, or MoveFileWithProgress functions.
CopyFileProgressAction
The
DelegatesCopyProgressRoutine function should return one of the following values:
Cancel - Cancel the copy operation and delete the destination file.
Continue - Continue the copy operation.
Quiet - Continue the copy operation, but stop invoking
DelegatesCopyProgressRoutine to report progress.
Stop - Stop the copy operation. It can be restarted at a later time.