COPYFILE2_MESSAGE_TYPE enumeration (winbase.h)

Indicates the type of message passed in the COPYFILE2_MESSAGE structure to the CopyFile2ProgressRoutine callback function.

Syntax

typedef enum _COPYFILE2_MESSAGE_TYPE {
  COPYFILE2_CALLBACK_NONE = 0,
  COPYFILE2_CALLBACK_CHUNK_STARTED,
  COPYFILE2_CALLBACK_CHUNK_FINISHED,
  COPYFILE2_CALLBACK_STREAM_STARTED,
  COPYFILE2_CALLBACK_STREAM_FINISHED,
  COPYFILE2_CALLBACK_POLL_CONTINUE,
  COPYFILE2_CALLBACK_ERROR,
  COPYFILE2_CALLBACK_MAX
} COPYFILE2_MESSAGE_TYPE;

Constants

 
COPYFILE2_CALLBACK_NONE
Value: 0
Not a valid value.
COPYFILE2_CALLBACK_CHUNK_STARTED
Indicates a single chunk of a stream has started to be copied.
COPYFILE2_CALLBACK_CHUNK_FINISHED
Indicates the copy of a single chunk of a stream has completed.
COPYFILE2_CALLBACK_STREAM_STARTED
Indicates both source and destination handles for a stream have been opened and the copy of the stream is
about to be started.
COPYFILE2_CALLBACK_STREAM_FINISHED
Indicates the copy operation for a stream have started to be completed.
COPYFILE2_CALLBACK_POLL_CONTINUE
May be sent periodically.
COPYFILE2_CALLBACK_ERROR
COPYFILE2_CALLBACK_MAX
An error was encountered during the copy operation.

Remarks

To compile an application that uses this enumeration, define the _WIN32_WINNT macro as 0x0601 or later. For more information, see Using the Windows Headers.

Requirements

Requirement Value
Minimum supported client Windows 8 [desktop apps | UWP apps]
Minimum supported server Windows Server 2012 [desktop apps | UWP apps]
Header winbase.h (include Windows.h)

See also

File Management Enumerations