Skip to main content

WdCopyErrorCallback

Called to report error and warning messages during a copy operation.

Syntax

Parameters

severity _In_
Type: WdCopyErrorSeverity
The severity of the message (Warning or Error). message _In_z_
Type: const char*
A null-terminated string containing the diagnostic message. error _In_
Type: HRESULT
The HRESULT error code associated with the message. S_OK for warning messages. context _In_opt_
Type: void*
The user-defined context pointer that was specified in the WdCopyStatusCallbacks structure.

Return value

Type: HRESULT Return S_OK to continue the copy operation. Return a failure HRESULT to abort the copy.

Remarks

This callback is invoked by WdRemoteCopy to report diagnostic messages during a copy operation, such as errors or warnings. The error parameter provides the HRESULT associated with error messages; for warning messages, error is S_OK. The callback is invoked on the same thread as the WdRemoteCopy call. The message string is only valid for the duration of the callback invocation.

Requirements

See also

Last modified on August 20, 2026