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

# XGameInviteUnregisterForEvent (en desuso)

> XGameInviteUnregisterForEvent (en desuso)

# XGameInviteUnregisterForEvent (en desuso)

<Info>Esta API está ahora en desuso. Use [XGameActivationUnregisterForEvent](/reference/system/xgameactivation/functions/xgameactivationunregisterforevent) en su lugar.</Info>

Anula el registro de una devolución de llamada para un evento de invitación de juego.

## Sintaxis

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

### Parámetros

*token*   \_In\_\
Tipo: [XTaskQueueRegistrationToken](/reference/system/xtaskqueue/structs/xtaskqueueregistrationtoken)

El token que devuelve [XGameInviteRegisterForEvent](/reference/system/xgameinvite/functions/xgameinviteregisterforevent).

*wait*   \_In\_\
Tipo: bool

Esperar a que se completen las devoluciones de llamada de eventos pendientes.

### Valor devuelto

Tipo: bool

Devuelve false si *wait* es false y la anulación del registro está pendiente. De lo contrario, devuelve true.

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

Para registrar una devolución de llamada para un evento de invitación de juego, llame a [XGameInviteRegisterForEvent](/reference/system/xgameinvite/functions/xgameinviteregisterforevent). La función usa un puntero a una [XGameInviteEventCallback](/reference/system/xgameinvite/functions/xgameinviteeventcallback) como argumento.

Para ver un ejemplo de llamada a esta función, consulte la sección de comentarios del tema [XGameInviteEventCallback](/reference/system/xgameinvite/functions/xgameinviteeventcallback#ID_XGameInviteEventCallback_Remarks).

## Requisitos

**Encabezado:** XGameInvite.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

[XGameInvite](/reference/system/xgameinvite/xgameinvite_members)

[XGameInviteRegisterForEvent](/reference/system/xgameinvite/functions/xgameinviteregisterforevent)

[XGameInviteEventCallback](/reference/system/xgameinvite/functions/xgameinviteeventcallback)


## Related topics

- [XGameInviteEventCallback (en desuso)](/es/reference/system/xgameinvite/functions/xgameinviteeventcallback.md)
- [XGameInviteRegisterForEvent (en desuso)](/es/reference/system/xgameinvite/functions/xgameinviteregisterforevent.md)
- [XGameInvite (en desuso)](/es/reference/system/xgameinvite/xgameinvite_members.md)
- [XGameProtocolUnregisterForActivation (en desuso)](/es/reference/system/xgameprotocol/functions/xgameprotocolunregisterforactivation.md)
- [XGameActivation](/es/reference/system/xgameactivation/xgameactivation_members.md)
