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

# XGameProtocolUnregisterForActivation (preterido)

> XGameProtocolUnregisterForActivation (preterido)

# XGameProtocolUnregisterForActivation (preterido)

<Info>Esta API agora está preterida. Use [XGameActivationUnregisterForEvent](/pt-BR/reference/system/xgameactivation/functions/xgameactivationunregisterforevent) em vez disso.</Info>

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

## Sintaxe

```cpp theme={null}
STDAPI_(bool) XGameProtocolUnregisterForActivation(
    _In_ XTaskQueueRegistrationToken token,
    _In_ bool wait
    ) noexcept;
```

### Parâmetros

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

O token que [XGameInviteRegisterForEvent](/pt-BR/reference/system/xgameinvite/functions/xgameinviteregisterforevent) 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</Note>
informações, consulte [Threads sensíveis ao tempo](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/console-dev/overviews/threads/time-sensitive-threads).

## Requisitos

**Cabeçalho:** XGameProtocol.h

**Biblioteca:** xgameruntime.lib

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

## Confira também

[Membros de XGameProtocol](/pt-BR/reference/system/xgameprotocol/xgameprotocol_members)


## Related topics

- [XGameProtocolUnregisterForActivation (deprecated)](/reference/system/xgameprotocol/functions/xgameprotocolunregisterforactivation.md)
- [XGameProtocolUnregisterForActivation (en desuso)](/es/reference/system/xgameprotocol/functions/xgameprotocolunregisterforactivation.md)
- [XGameProtocol (deprecated)](/reference/system/xgameprotocol/xgameprotocol_members.md)
- [XGameActivation](/reference/system/xgameactivation/xgameactivation_members.md)
