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

# WdCancelRemoteCopy

> WdCancelRemoteCopy

# WdCancelRemoteCopy

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

## 構文

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

### パラメーター

`_In_ cancellationHandle`\
Type: **[WdCancellationHandle](/reference/remoting/structs/wdcancellationhandle)**

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

### 戻り値

Type: **HRESULT**

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

## 解説

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

## 要件

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

## 関連項目

* [WdRemoteCopy](/reference/remoting/functions/wdremotecopy)
* [WdCancellationHandle](/reference/remoting/structs/wdcancellationhandle)
* [WdCreateCancellationHandle](/reference/remoting/functions/wdcreatecancellationhandle)
* [WdCloseCancellationHandle](/reference/remoting/functions/wdclosecancellationhandle)
* [XBOX PC Remote Iteration API](/reference/remoting/remoteiteration_members)


## Related topics

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