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 ReturnS_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. Theerror 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.
