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

# WdCancelRemoteDelete

> Référence de WdCancelRemoteDelete, qui signale l'annulation de l'attente du client pour un appel à WdDeleteRemoteFiles, avec sa syntaxe et des remarques.

# WdCancelRemoteDelete

Signale l'annulation de l'attente du client pour une opération de suppression.

**Introduit dans :** [RIT 0.0.13-preview](/fr/reference/remoting/release-versions#release-versions).

## Syntaxe

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

### Paramètres

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

Handle d'annulation créé par [WdCreateCancellationHandle](/fr/reference/remoting/functions/wdcreatecancellationhandle) et passé à [WdDeleteRemoteFiles](/fr/reference/remoting/functions/wddeleteremotefiles). La signalisation de ce handle demande l'annulation de l'attente du client.

### Valeur renvoyée

Type : **HRESULT**

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

## Remarques

Appelez `WdCancelRemoteDelete` depuis un thread distinct pour signaler l'annulation d'un appel bloquant à [WdDeleteRemoteFiles](/fr/reference/remoting/functions/wddeleteremotefiles). `WdCancelRemoteDelete` est une fonction non bloquante. Si `WdDeleteRemoteFiles` observe le signal, elle cesse d'attendre et renvoie `S_OK` sans confirmer l'achèvement côté point de terminaison.

Étant donné qu'une annulation observée et un achèvement normal renvoient tous deux `S_OK`, un appelant susceptible d'annuler ne peut pas déterminer le résultat à partir de la seule valeur renvoyée. Suivez l'état d'annulation dans votre propre code si vous devez distinguer les deux cas, par exemple pour supprimer un message d'erreur ou ignorer une nouvelle tentative après une annulation initiée par l'utilisateur.

L'annulation n'arrête pas une suppression déjà commencée sur le point de terminaison, qui se poursuit indépendamment. Elle ne restaure pas les éléments déjà supprimés.

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

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


## Related topics

- [WdDeleteRemoteFiles](/fr/reference/remoting/functions/wddeleteremotefiles.md)
- [API XBOX PC Remote Iteration](/fr/reference/remoting/remoteiteration_members.md)
- [WdCancelRemoteCopy](/fr/reference/remoting/functions/wdcancelremotecopy.md)
- [XBOX PC Remote (wdRemote.exe)](/fr/tools/tools-pc/commandlinetools/gr-wdRemote.md)
- [WdCancellationHandle](/fr/reference/remoting/structs/wdcancellationhandle.md)
