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

# WdDuplicateCancellationHandle

> WdDuplicateCancellationHandle

# WdDuplicateCancellationHandle

Duplique un [WdCancellationHandle](/fr-CA/reference/remoting/structs/wdcancellationhandle) existant.

## Syntaxe

```cpp theme={null}
HRESULT WdDuplicateCancellationHandle(  
         _In_ WdCancellationHandle cancellationHandle,  
         _Out_ WdCancellationHandle* duplicatedHandle  
);  
```

### Paramètres

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

Le handle d'annulation à dupliquer.

`_Out_ duplicatedHandle`\
Type : **[WdCancellationHandle](/fr-CA/reference/remoting/structs/wdcancellationhandle)\***

Reçoit le handle d'annulation dupliqué. L'appelant est responsable de fermer ce handle de façon indépendante en appelant [WdCloseCancellationHandle](/fr-CA/reference/remoting/functions/wdclosecancellationhandle).

### Valeur de retour

Type : **HRESULT**

Retourne `S_OK` en cas de réussite; sinon, retourne un code d'erreur.

## Remarques

Utilisez `WdDuplicateCancellationHandle` lorsque plusieurs composants doivent faire référence au même handle d'annulation. Le handle original et le handle dupliqué font référence au même état d'annulation : signaler l'annulation au moyen de [WdCancelRemoteCopy](/fr-CA/reference/remoting/functions/wdcancelremotecopy) sur l'un ou l'autre des handles annule l'opération [WdRemoteCopy](/fr-CA/reference/remoting/functions/wdremotecopy) associée. Chaque handle doit être fermé de façon indépendante avec [WdCloseCancellationHandle](/fr-CA/reference/remoting/functions/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)
* [WdCancellationHandle](/fr-CA/reference/remoting/structs/wdcancellationhandle)
* [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

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