> ## 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.

# WdCancelRemoteCopy

> WdCancelRemoteCopy

# WdCancelRemoteCopy

進行中のコピー操作をキャンセルします。

## 構文

```cpp theme={null}
HRESULT WdCancelRemoteCopy(  
         _In_ WdCancellationHandle cancellationHandle  
);  
```

### パラメーター

`_In_ cancellationHandle`\
Type: **[WdCancellationHandle](https://docs.xbox.com/ja-jp/reference/remoting/structs/wdcancellationhandle.md)**

[WdCreateCancellationHandle](https://docs.xbox.com/ja-jp/reference/remoting/functions/wdcreatecancellationhandle.md) で作成し、[WdRemoteCopy](https://docs.xbox.com/ja-jp/reference/remoting/functions/wdremotecopy.md) に渡されたキャンセル ハンドル。このハンドルにシグナルを送ると、進行中のコピーがキャンセルされます。

### 戻り値

Type: **HRESULT**

成功した場合は `S_OK` を返します。それ以外の場合はエラー コードを返します。

## 解説

ブロッキングされている [WdRemoteCopy](https://docs.xbox.com/ja-jp/reference/remoting/functions/wdremotecopy.md) 呼び出しをキャンセルするには、別のスレッドから `WdCancelRemoteCopy` を呼び出します。`WdCancelRemoteCopy` は非ブロッキング関数です。キャンセルがシグナルされると、`WdRemoteCopy` はコピーをキャンセルして `S_OK` を返します。

## 要件

| 要件 | 値 |
| - | - |
| **ヘッダー** | WdRemoteIteration.h |
| **ライブラリ** | wdremoteapi.lib |
| **サポートされている OS** | Windows 11 以降 |
| **サポートされているアーキテクチャ** | x64、ARM64 |

## 関連項目

* [WdRemoteCopy](https://docs.xbox.com/ja-jp/reference/remoting/functions/wdremotecopy.md)
* [WdCancellationHandle](https://docs.xbox.com/ja-jp/reference/remoting/structs/wdcancellationhandle.md)
* [WdCreateCancellationHandle](https://docs.xbox.com/ja-jp/reference/remoting/functions/wdcreatecancellationhandle.md)
* [WdCloseCancellationHandle](https://docs.xbox.com/ja-jp/reference/remoting/functions/wdclosecancellationhandle.md)
* [XBOX PC Remote Iteration API](https://docs.xbox.com/ja-jp/reference/remoting/remoteiteration_members.md)


## Related topics

- [WdRemoteCopy](https://docs.xbox.com/ja-jp/reference/remoting/functions/wdremotecopy.md)
- [WdCancellationHandle](https://docs.xbox.com/ja-jp/reference/remoting/structs/wdcancellationhandle.md)
- [WdCreateCancellationHandle](https://docs.xbox.com/ja-jp/reference/remoting/functions/wdcreatecancellationhandle.md)
- [WdDuplicateCancellationHandle](https://docs.xbox.com/ja-jp/reference/remoting/functions/wdduplicatecancellationhandle.md)
- [XBOX PC Remote Iteration API](https://docs.xbox.com/ja-jp/reference/remoting/remoteiteration_members.md)
