gcd_getkeyhash

GameSpy SDK

gcd_getkeyhash

Returns the key hash for the given user.

char * gcd_getkeyhash(
int gameid,
int localid );
RoutineRequired HeaderDistribution
gcd_getkeyhash<gcdkeys.h>SDKZIP

Return Value

Returns the key hash string, or an empty string if that user is not connected.

Parameters

gameid
[in] The game ID issued for your game.
localid
[in] The unique int used to identify the user.

Remarks

The hash returned will always be the same for a given user. This makes it useful for banning or tracking of users (used with the Tracking/Stats SDK).

Section Reference: Gamespy CDKey SDK