Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

COPYFILE2_MESSAGE_TYPE enumeration

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    = 1,
  COPYFILE2_CALLBACK_CHUNK_FINISHED   = 2,
  COPYFILE2_CALLBACK_STREAM_STARTED   = 3,
  COPYFILE2_CALLBACK_STREAM_FINISHED  = 4,
  COPYFILE2_CALLBACK_POLL_CONTINUE    = 5,
  COPYFILE2_CALLBACK_ERROR            = 6,
  COPYFILE2_CALLBACK_MAX
} COPYFILE2_MESSAGE_TYPE;

Constants

COPYFILE2_CALLBACK_NONE

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

Minimum supported client

Windows 8 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2012 [desktop apps | Windows Store apps]

Header

WinBase.h (include Windows.h)

See also

File Management Enumerations

 

 

Community Additions

ADD
Show:
© 2015 Microsoft