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

# 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](https://docs.xbox.com/reference/remoting/callbacks/wdcopyfilesstatuscallback.md)**

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 desired 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](https://docs.xbox.com/reference/remoting/callbacks/wdcopyerrorcallback.md)**

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](https://docs.xbox.com/reference/remoting/functions/wdremotecopy.md) 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](https://docs.xbox.com/reference/remoting/functions/wdremotecopy.md)
* [WdCopyFilesStatusCallback](https://docs.xbox.com/reference/remoting/callbacks/wdcopyfilesstatuscallback.md)
* [WdCopyErrorCallback](https://docs.xbox.com/reference/remoting/callbacks/wdcopyerrorcallback.md)
* [XBOX PC Remote Iteration API](https://docs.xbox.com/reference/remoting/remoteiteration_members.md)


## Related topics

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