PreAuthenticatePlayerCD

GameSpy SDK

PreAuthenticatePlayerCD

Authenticates a player on the Stats server.

void PreAuthenticatePlayerCD(
int localid,
gsi_char * nick,
char * keyhash,
char * challengeresponse,
PersAuthCallbackFn callback,
void * instance );
RoutineRequired HeaderDistribution
PreAuthenticatePlayerCD<gpersist.h>SDKZIP

Parameters

localid
[in] Your game-specific reference number for this player
nick
[in] Nickname of the player to authenticate.
keyhash
[in] Hash of the player's CD Key.
challengeresponse
[in] Result of the GenerateAuth() call
callback
[in] Will be called when the authentication is complete (either successful or not).
instance
[in] Pointer that will be passed to the callback function (for your use)

Section Reference: Gamespy Persistent Storage SDK