> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# WdCopyStatusCallbacks

> WdCopyStatusCallbacks

# WdCopyStatusCallbacks

Contains callback function pointers and settings for receiving copy status updates.

## Syntax

```cpp theme={null}
struct WdCopyStatusCallbacks
{
    WdCopyFilesStatusCallback copyFilesStatusCallback;
    uint32_t refreshRateMs;
    WdCopyErrorCallback copyErrorCallback;
    void* context;
};
```

### Members

`copyFilesStatusCallback`\
Type: **[WdCopyFilesStatusCallback](/reference/remoting/callbacks/wdcopyfilesstatuscallback)**

A callback function that is invoked to report file copy progress. Set to `nullptr` if file progress updates are not needed.

`refreshRateMs`\
Type: **uint32\_t**

The minimum interval in milliseconds between callback invocations for the `copyFilesStatusCallback`. If not specified or set to `0`, the default refresh rate is 500ms.

`copyErrorCallback`\
Type: **[WdCopyErrorCallback](/reference/remoting/callbacks/wdcopyerrorcallback)**

An optional callback function that receives diagnostic messages from the copy operation, such as errors or warnings. Set to `nullptr` if diagnostic messages are not needed.

`context`\
Type: **void\***

An optional user-defined context pointer that is passed to both callback functions. Set to `nullptr` if no context is needed.

## Remarks

Pass this structure to [WdRemoteCopy](/reference/remoting/functions/wdremotecopy) via the `statusCallbacks` parameter to receive progress updates and diagnostic messages during a copy operation. The `refreshRateMs` member controls how frequently the `copyFilesStatusCallback` is invoked. If not specified or set to `0`, the default refresh rate is 500ms. The `context` pointer is passed through to both callbacks unchanged, allowing you to associate the callbacks with application-specific state.

## Requirements

| Requirement                 | Value                |
| --------------------------- | -------------------- |
| **Header**                  | WdRemoteIteration.h  |
| **Library**                 | wdremoteapi.lib      |
| **Supported OS**            | Windows 11 and later |
| **Supported architectures** | x64, ARM64           |

## See also

* [WdRemoteCopy](/reference/remoting/functions/wdremotecopy)
* [WdCopyFilesStatusCallback](/reference/remoting/callbacks/wdcopyfilesstatuscallback)
* [WdCopyErrorCallback](/reference/remoting/callbacks/wdcopyerrorcallback)
* [XBOX PC Remote Iteration API](/reference/remoting/remoteiteration_members)


## Related topics

- [WdCopyFilesStatusCallback](/reference/remoting/callbacks/wdcopyfilesstatuscallback.md)
- [WdCopyErrorCallback](/reference/remoting/callbacks/wdcopyerrorcallback.md)
- [WdCopyErrorSeverity](/reference/remoting/enums/wdcopyerrorseverity.md)
- [WdRemoteCopy](/reference/remoting/functions/wdremotecopy.md)
- [XBOX PC Remote Iteration API](/reference/remoting/remoteiteration_members.md)
