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

# XGameStreamingUnregisterConnectionStateChanged

> XGameStreamingUnregisterConnectionStateChanged

# XGameStreamingUnregisterConnectionStateChanged

Anula el registro de una [XGameStreamingConnectionStateChangedCallback](/reference/system/xgamestreaming/functions/xgamestreamingconnectionstatechangedcallback) registrada previamente.

## Sintaxis

```cpp theme={null}
bool XGameStreamingUnregisterConnectionStateChanged(
         XTaskQueueRegistrationToken token,
         bool wait
)
```

### Parámetros

*token*   \_In\_
Tipo: XTaskQueueRegistrationToken

Token que corresponde al registro de la devolución de llamada realizado mediante [XGameStreamingRegisterConnectionStateChanged](/reference/system/xgamestreaming/functions/xgamestreamingregisterconnectionstatechanged).

*wait*   \
Tipo: bool

Si `wait` se establece en true, `XGameStreamingUnregisterConnectionStateChanged` no devolverá el control hasta que se haya revocado el registro y se hayan completado todas las devoluciones de llamada pendientes.

Si `wait` se establece en false, `XGameStreamingUnregisterConnectionStateChanged` devolverá el control en cuanto se haya revocado el registro. Aunque no se entregarán nuevas devoluciones de llamada, es posible que una devolución de llamada en curso siga ejecutándose cuando la función devuelva el control.

### Valor devuelto

Tipo: bool

Devuelve true si la anulación del registro se realizó correctamente; false si no se realizó correctamente.

## Comentarios

<Note>No es seguro llamar a esta función en un subproceso sensible al tiempo. Para obtener más información, consulte [Subprocesos sensibles al tiempo](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/console-dev/overviews/threads/time-sensitive-threads).</Note>

Esta API se puede usar para dejar de escuchar los cambios de conexión de los dispositivos cliente de streaming.

Esto debe hacerse cuando el juego vaya a realizar solo una comprobación general de si algún cliente está transmitiendo mediante [XGameStreamingIsStreaming](/reference/system/xgamestreaming/functions/xgamestreamingisstreaming), o cuando ya no vaya a realizar ninguna optimización de la experiencia debido a los clientes de streaming.

## Requisitos

**Encabezado:** xgamestreaming.h

**Biblioteca:** xgameruntime.lib

**Plataformas compatibles:** Windows, consolas de la familia XBOX One y consolas XBOX Series

## Documentación conceptual

* [Subprocesos sensibles al tiempo](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/console-dev/overviews/threads/time-sensitive-threads)

## Consulte también

[XGameStreamingConnectionStateChangedCallback](/reference/system/xgamestreaming/functions/xgamestreamingconnectionstatechangedcallback)\
[XGameStreamingRegisterConnectionStateChanged](/reference/system/xgamestreaming/functions/xgamestreamingregisterconnectionstatechanged)\
[XGameStreaming](/reference/system/xgamestreaming/xgamestreaming_members)


## Related topics

- [XGameStreamingRegisterConnectionStateChanged](/es/reference/system/xgamestreaming/functions/xgamestreamingregisterconnectionstatechanged.md)
- [XGameStreamingConnectionStateChangedCallback](/es/reference/system/xgamestreaming/functions/xgamestreamingconnectionstatechangedcallback.md)
- [XGameStreamingConnectionState](/es/reference/system/xgamestreaming/enums/xgamestreamingconnectionstate.md)
- [XGameStreamingIsStreaming](/es/reference/system/xgamestreaming/functions/xgamestreamingisstreaming.md)
- [XGameStreaming](/es/reference/system/xgamestreaming/xgamestreaming_members.md)
