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

# WdCloseCancellationHandle

> WdCloseCancellationHandle

# WdCloseCancellationHandle

关闭由 [WdCreateCancellationHandle](/reference/remoting/functions/wdcreatecancellationhandle) 创建的取消句柄。

## 语法

```cpp theme={null}
void WdCloseCancellationHandle(  
         _In_ WdCancellationHandle cancellationHandle  
);  
```

### 参数

`_In_ cancellationHandle`\
类型：**[WdCancellationHandle](/reference/remoting/structs/wdcancellationhandle)**

要关闭的取消句柄。在此调用之后，该句柄不再有效，不得再使用。

### 返回值

此函数不返回值。

## 备注

由 [WdCreateCancellationHandle](/reference/remoting/functions/wdcreatecancellationhandle) 创建的或由 [WdDuplicateCancellationHandle](/reference/remoting/functions/wdduplicatecancellationhandle) 复制的每个句柄都必须使用 `WdCloseCancellationHandle` 独立关闭。请在 [WdRemoteCopy](/reference/remoting/functions/wdremotecopy) 返回且不再需要该句柄之后关闭它。

## 要求

| 要求          | 值                   |
| ----------- | ------------------- |
| **头文件**     | WdRemoteIteration.h |
| **库**       | wdremoteapi.lib     |
| **支持的操作系统** | Windows 11 及更高版本    |
| **支持的体系结构** | x64、ARM64           |

## 另请参阅

* [WdCreateCancellationHandle](/reference/remoting/functions/wdcreatecancellationhandle)
* [WdDuplicateCancellationHandle](/reference/remoting/functions/wdduplicatecancellationhandle)
* [WdCancellationHandle](/reference/remoting/structs/wdcancellationhandle)
* [XBOX PC 远程迭代 API](/reference/remoting/remoteiteration_members)


## Related topics

- [WdCancellationHandle](/zh-CN/reference/remoting/structs/wdcancellationhandle.md)
- [WdCreateCancellationHandle](/zh-CN/reference/remoting/functions/wdcreatecancellationhandle.md)
- [WdDuplicateCancellationHandle](/zh-CN/reference/remoting/functions/wdduplicatecancellationhandle.md)
- [WdCancelRemoteCopy](/zh-CN/reference/remoting/functions/wdcancelremotecopy.md)
- [WdRemoteCopy](/zh-CN/reference/remoting/functions/wdremotecopy.md)
