Skip to main content

XGameProtocolActivationCallbackXGameProtocol (deprecated)

此 API 现已弃用。请改用 XGameActivationCallback
应用程序为协议激活事件定义的回调。

Syntax

Parameters

context   _In_opt_
类型:void*
传递给 XGameProtocolRegisterForActivation 的上下文。 protocolUri   _In_
类型:char*
用于调用协议激活的 URI。游戏可以解析该 URI 以确定传递给游戏的参数。

Return value

类型:void

Remarks

若要为游戏邀请事件注册回调,请调用 XGameProtocolRegisterForActivation。若要取消注册协议激活的回调,请调用 XGameProtocolUnregisterForEvent

Requirements

头文件: XGameProtocol.h 库: xgameruntime.lib 受支持的平台: Windows、XBOX One 系列主机和 XBOX Series 主机

See also

XGameProtocol members
最后修改于 2026年8月24日