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

Un handle opaque servant à annuler une opération de copie en cours.

## Syntaxe

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

## Remarques

`WdCancellationHandle` est un pointeur défini par typedef vers une structure interne opaque. L'appelant est responsable de la gestion du cycle de vie du handle :

1. Créez un handle en appelant [WdCreateCancellationHandle](/fr-CA/reference/remoting/functions/wdcreatecancellationhandle).
2. Passez le handle à [WdRemoteCopy](/fr-CA/reference/remoting/functions/wdremotecopy) au moyen du paramètre `cancellationHandle`.
3. Pour annuler la copie en cours, appelez [WdCancelRemoteCopy](/fr-CA/reference/remoting/functions/wdcancelremotecopy) avec le handle à partir d'un thread distinct.
4. Une fois que `WdRemoteCopy` a retourné, fermez le handle en appelant [WdCloseCancellationHandle](/fr-CA/reference/remoting/functions/wdclosecancellationhandle).

Un handle peut être dupliqué au moyen de [WdDuplicateCancellationHandle](/fr-CA/reference/remoting/functions/wdduplicatecancellationhandle). Chaque copie du handle doit être fermée de façon indépendante avec `WdCloseCancellationHandle`.

## Configuration requise

| Exigence | Valeur |
| - | - |
| **En-tête** | WdRemoteIteration.h |
| **Bibliothèque** | wdremoteapi.lib |
| **Système d'exploitation pris en charge** | Windows 11 et versions ultérieures |
| **Architectures prises en charge** | x64, ARM64 |

## Voir aussi

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


## Related topics

- [WdCancellationHandle](/reference/remoting/structs/wdcancellationhandle.md)
- [WdDuplicateCancellationHandle](/reference/remoting/functions/wdduplicatecancellationhandle.md)
