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

# WdTerminateRemoteGame

> WdTerminateRemoteGame

# WdTerminateRemoteGame

Finaliza el último juego iniciado mediante [WdLaunchRemoteGame](/reference/remoting/functions/wdlaunchremotegame) en un dispositivo remoto.

## Sintaxis

```cpp theme={null}
HRESULT WdTerminateRemoteGame(  
         _In_z_ const char* remoteDevice  
);  
```

### Parámetros

`_In_z_ remoteDevice`\
Tipo: **const char\***

Nombre de host o dirección IP del dispositivo remoto (por ejemplo, `"192.168.1.100"` o `"MyDevKit"`).

### Valor devuelto

Tipo: **HRESULT**

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

#### Códigos de error

| Código             | Valor      | Descripción                                  | Causa raíz                                                                                                                                                                           | Solución de problemas                                                                                                                                                                                                                                |
| ------------------ | ---------- | -------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| E\_GAMENOTRUNNING  | 0x8C11400C | No hay ningún proceso de juego en ejecución. | No hay ningún proceso de juego en ejecución que se pueda suspender o finalizar                                                                                                       | Compruebe los procesos que se están ejecutando actualmente; inicie el juego antes de usar las API que dependen del proceso del juego                                                                                                                 |
| E\_CONNECTIONERROR | 0x8C114014 | Error de conexión.                           | Error genérico al establecer la conexión de red (error a nivel de transporte), no relacionado con la validez de la dirección IP ni con la resolución del nombre de la máquina remota | Compruebe la conectividad de red, las reglas de firewall y la disponibilidad del servicio en la máquina remota; compruebe la visibilidad entre dispositivos: deberían poder hacerse ping entre sí; reintente la conexión con el registro habilitado. |

## Comentarios

Use esta función para finalizar el último juego que se inició mediante [WdLaunchRemoteGame](/reference/remoting/functions/wdlaunchremotegame). La función espera a que el proceso del juego finalice.

## Requisitos

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

## Consulte también

* [WdLaunchRemoteGame](/reference/remoting/functions/wdlaunchremotegame)
* [WdResumeRemoteGame](/reference/remoting/functions/wdresumeremotegame)
* [Códigos de error de la API XBOX PC Remote Iteration](/reference/remoting/error-codes)
* [API XBOX PC Remote Iteration](/reference/remoting/remoteiteration_members)


## Related topics

- [WdResumeRemoteGame](/es/reference/remoting/functions/wdresumeremotegame.md)
- [WdLaunchRemoteGame](/es/reference/remoting/functions/wdlaunchremotegame.md)
- [API XBOX PC Remote Iteration](/es/reference/remoting/remoteiteration_members.md)
- [XBOX PC Remote (wdRemote.exe)](/es/tools/tools-pc/commandlinetools/gr-wdRemote.md)
- [WdRegisterRemoteXboxGame](/es/reference/remoting/functions/wdregisterremotexboxgame.md)
