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

# XGameProtocolRegisterForActivation (deprecated)

> XGameProtocolRegisterForActivation (deprecated)

# XGameProtocolRegisterForActivation (사용되지 않음)

<Info>이 API는 이제 사용되지 않습니다. 대신 [XGameActivationRegisterForEvent](/reference/system/xgameactivation/functions/xgameactivationregisterforevent)를 사용하세요.</Info>

프로토콜 활성화에 대한 콜백을 등록합니다.

## 구문

```cpp theme={null}
STDAPI XGameProtocolRegisterForActivation(
    _In_opt_ XTaskQueueHandle queue,
    _In_opt_ void* context,
    _In_ XGameProtocolActivationCallback * callback,
    _Out_ XTaskQueueRegistrationToken* token
    ) noexcept;
```

### 매개 변수

*queue*   \_In\_opt\_\
형식: XTaskQueueHandle

이벤트 콜백을 디스패치하는 작업 큐입니다.

*context*   \_In\_opt\_\
형식: void\*

이벤트 콜백에 전달하는 컨텍스트입니다.

*callback*   \_In\_\
형식: XGameProtocolActivationCallback\*

이벤트 콜백 함수입니다.

*token*   \_Out\_\
형식: [XTaskQueueRegistrationToken\*](/reference/system/xtaskqueue/structs/xtaskqueueregistrationtoken)

등록을 나타내는 작업 큐의 토큰입니다. 이 토큰을 사용하여 프로토콜 활성화에 대한 콜백을 등록 해제합니다.

### 반환 값

형식: HRESULT

HRESULT 성공 또는 오류 코드입니다.\
오류 코드 목록은 [오류 코드](/reference/errorcodes)를 참조하세요.

## 설명

<Note>이 함수는 시간에 민감한 스레드에서 호출하기에 안전하지 않습니다. 자세한</Note>
내용은 [시간에 민감한 스레드](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/console-dev/overviews/threads/time-sensitive-threads)를 참조하세요.

**XGameProtocolRegisterForActivation** 함수는 인수로
[XGameProtocolActivationCallback](/reference/system/xgameprotocol/functions/xgameprotocolactivationcallback)을 사용합니다.

게임 초대 이벤트에 대한 콜백을 등록 해제하려면 [XGameProtocolUnregisterForEvent](/reference/system/xgameprotocol/functions/xgameprotocolunregisterforactivation)를 호출합니다.

## 요구 사항

**헤더:** XGameProtocol.h

**라이브러리:** xgameruntime.lib

**지원 플랫폼:** Windows, XBOX One 계열 콘솔 및 XBOX Series 콘솔

## 함께 보기

[XGameProtocol 멤버](/reference/system/xgameprotocol/xgameprotocol_members)


## Related topics

- [XGameProtocolActivationCallbackXGameProtocol (deprecated)](/ko/reference/system/xgameprotocol/functions/xgameprotocolactivationcallback.md)
- [XGameProtocolUnregisterForActivation (deprecated)](/ko/reference/system/xgameprotocol/functions/xgameprotocolunregisterforactivation.md)
- [XGameProtocol (deprecated)](/ko/reference/system/xgameprotocol/xgameprotocol_members.md)
- [XGameActivation](/ko/reference/system/xgameactivation/xgameactivation_members.md)
- [XGameActivationRegisterForEvent](/ko/reference/system/xgameactivation/functions/xgameactivationregisterforevent.md)
