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

# WdCancellationHandle

> WdCancellationHandle

# WdCancellationHandle

進行中のコピー操作をキャンセルするために使用される不透明ハンドル。

## 構文

```cpp theme={null}
typedef struct WdCancellationHandleImpl* WdCancellationHandle;
```

## 解説

`WdCancellationHandle` は、不透明な内部構造体への typedef ポインターです。呼び出し元はハンドルのライフサイクルを管理する必要があります。

1. [WdCreateCancellationHandle](/reference/remoting/functions/wdcreatecancellationhandle) を呼び出してハンドルを作成します。
2. `cancellationHandle` パラメーターを介して [WdRemoteCopy](/reference/remoting/functions/wdremotecopy) にハンドルを渡します。
3. 進行中のコピーをキャンセルするには、別のスレッドからハンドルを指定して [WdCancelRemoteCopy](/reference/remoting/functions/wdcancelremotecopy) を呼び出します。
4. `WdRemoteCopy` が戻った後、[WdCloseCancellationHandle](/reference/remoting/functions/wdclosecancellationhandle) を呼び出してハンドルを閉じます。

ハンドルは [WdDuplicateCancellationHandle](/reference/remoting/functions/wdduplicatecancellationhandle) を使用して複製できます。ハンドルの各コピーは `WdCloseCancellationHandle` で個別に閉じる必要があります。

## 要件

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

## 関連項目

* [WdCreateCancellationHandle](/reference/remoting/functions/wdcreatecancellationhandle)
* [WdCloseCancellationHandle](/reference/remoting/functions/wdclosecancellationhandle)
* [WdDuplicateCancellationHandle](/reference/remoting/functions/wdduplicatecancellationhandle)
* [WdRemoteCopy](/reference/remoting/functions/wdremotecopy)
* [WdCancelRemoteCopy](/reference/remoting/functions/wdcancelremotecopy)
* [XBOX PC Remote Iteration API](/reference/remoting/remoteiteration_members)


## Related topics

- [WdDuplicateCancellationHandle](/ja-jp/reference/remoting/functions/wdduplicatecancellationhandle.md)
- [WdCloseCancellationHandle](/ja-jp/reference/remoting/functions/wdclosecancellationhandle.md)
- [WdCreateCancellationHandle](/ja-jp/reference/remoting/functions/wdcreatecancellationhandle.md)
- [WdCancelRemoteCopy](/ja-jp/reference/remoting/functions/wdcancelremotecopy.md)
- [WdRemoteCopy](/ja-jp/reference/remoting/functions/wdremotecopy.md)
