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

# XGameActivationUnregisterForEvent

> XGameActivationUnregisterForEvent

# XGameActivationUnregisterForEvent

Cancela o registro de um retorno de chamada para eventos de ativação.

## Sintaxe

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

### Parâmetros

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

O token que [XGameActivationRegisterForEvent](/pt-BR/reference/system/xgameactivation/functions/xgameactivationregisterforevent) retorna.

*wait*   \_In\_\
Tipo: bool

Aguarda a conclusão dos retornos de chamada de eventos pendentes.

### Valor retornado

Tipo: bool

Retornará false se *wait* for false e o cancelamento do registro estiver pendente. Caso contrário, retornará true.

## Comentários

<Note>Não é seguro chamar esta função em um thread sensível ao tempo. Para obter mais informações, consulte [Threads sensíveis ao tempo](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/console-dev/overviews/threads/time-sensitive-threads).</Note>

Para registrar um retorno de chamada para eventos de ativação, chame [XGameActivationRegisterForEvent](/pt-BR/reference/system/xgameactivation/functions/xgameactivationregisterforevent). A função usa um ponteiro para um [XGameActivationCallback](/pt-BR/reference/system/xgameactivation/functions/xgameactivationcallback) como argumento.

Para obter um exemplo de como chamar esta função, consulte a seção de comentários do tópico [XGameActivationCallback](/pt-BR/reference/system/xgameactivation/functions/xgameactivationcallback#remarks).

## Requisitos

**Cabeçalho:** XGameActivation.h

**Biblioteca:** xgameruntime.lib

**Plataformas compatíveis:** Windows, consoles da família XBOX One e consoles XBOX Series

## Documentação conceitual

* [Ativação de tipo de arquivo](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/overviews/filetypeactivation)
* [Recebendo convites](/pt-BR/services/xbox-services/multiplayer/invites/how-to/live-invites-receive)

## Confira também

[XGameActivation](/pt-BR/reference/system/xgameactivation/xgameactivation_members)

[XGameActivationRegisterForEvent](/pt-BR/reference/system/xgameactivation/functions/xgameactivationregisterforevent)

[XGameActivationCallback](/pt-BR/reference/system/xgameactivation/functions/xgameactivationcallback)


## Related topics

- [XGameActivationUnregisterForEvent](/reference/system/xgameactivation/functions/xgameactivationunregisterforevent.md)
- [XGameActivation](/reference/system/xgameactivation/xgameactivation_members.md)
