跳轉到主要內容
使用 Battle.net 身分識別權杖登入使用者

語法

參數

serviceConfigHandle   PFServiceConfigHandle 從 PFServiceConfigCreateHandle 呼叫傳回的 PFServiceConfigHandle。 secretKey   char*
In_z
用於驗證服務要求的遊戲祕密金鑰。 request   PFAuthenticationServerLoginWithBattleNetRequest* 已填入的要求物件。 async   XAsyncBlock*
Inout
用於非同步作業的 XAsyncBlock。

傳回值

類型:HRESULT 此 API 作業的結果代碼。

備註

此 API 適用於 Windows。另請參閱 ServerLinkBattleNetAccountAsync、ServerUnlinkBattleNetAccountAsync。非同步工作完成時,請呼叫 PFAuthenticationServerLoginWithBattleNetGetResult 以取得結果。

需求

標頭: PFAuthentication.h

另請參閱

PFAuthentication 成員
最後修改於 2026年10月6日