Redigera

PFAuthenticationAuthenticateGameServerWithCustomIdAsync

Important

XBOX Docs are now on docs.xbox.com! This page is kept as an archive and is no longer being updated. Visit our documentation on docs.xbox.com for the latest information and updates.

Visit the latest docs on docs.xbox.com

Create a game_server entity token and return a new or existing game_server entity.

Syntax

HRESULT PFAuthenticationAuthenticateGameServerWithCustomIdAsync(  
    PFEntityHandle entityHandle,  
    const PFAuthenticationAuthenticateCustomIdRequest* request,  
    XAsyncBlock* async  
)  

Parameters

entityHandle   PFEntityHandle

PFEntityHandle to use for authentication.

request   PFAuthenticationAuthenticateCustomIdRequest*

Populated request object.

async   XAsyncBlock*
Inout

XAsyncBlock for the async operation.

Return value

Type: HRESULT

Result code for this API operation.

Remarks

This API is available on Win32, Linux, and macOS. Create or return a game_server entity token. Caller must be a title entity. When the asynchronous task is complete, call PFAuthenticationAuthenticateGameServerWithCustomIdGetResultSize and PFAuthenticationAuthenticateGameServerWithCustomIdGetResult to get the result.

Requirements

Header: PFAuthentication.h

See also

PFAuthentication members