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

Cancela una operación de copia en curso.

## Sintaxis

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

### Parámetros

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

Identificador de cancelación creado por [WdCreateCancellationHandle](/reference/remoting/functions/wdcreatecancellationhandle) y pasado a [WdRemoteCopy](/reference/remoting/functions/wdremotecopy). Al señalar este identificador se cancela la copia en curso.

### Valor devuelto

Tipo: **HRESULT**

Devuelve `S_OK` si se realiza correctamente; de lo contrario, devuelve un código de error.

## Comentarios

Llame a `WdCancelRemoteCopy` desde un subproceso independiente para cancelar una llamada de bloqueo a [WdRemoteCopy](/reference/remoting/functions/wdremotecopy). `WdCancelRemoteCopy` es una función sin bloqueo. Una vez señalada la cancelación, `WdRemoteCopy` cancelará la copia y devolverá `S_OK`.

## Requisitos

| Requisito                           | Valor                              |
| ----------------------------------- | ---------------------------------- |
| **Encabezado**                      | WdRemoteIteration.h                |
| **Biblioteca**                      | wdremoteapi.lib                    |
| **Sistemas operativos compatibles** | Windows 11 y versiones posteriores |
| **Arquitecturas compatibles**       | x64, ARM64                         |

## Consulte también

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


## Related topics

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