peerGetGlobalKeysCallback

GameSpy SDK

peerGetGlobalKeysCallback

Callback for peerGetPlayerGlobalKeys() and peerGetRoomGlobalKeys().

typedef void (*peerGetGlobalKeysCallback)(
PEER peer,
PEERBool success,
const gsi_char * nick,
int num,
const gsi_char ** keys,
const gsi_char ** values,
void * param );
RoutineRequired HeaderDistribution
peerGetGlobalKeysCallback<peer.h>SDKZIP

Parameters

peer
[in] Initialized peer object
success
[in] PEERTrue if successful, PEERFalse if failure
nick
[in] The player's nickname
num
[in] Number of key/value pairs in the array
keys
[in] Array of key names whose values were retrieved
values
[in] Array of values retreived
param
[in] Pointer to user data. This is optional and will be passed unmodified to the callback function.

Remarks

Called with a player's global keys in response to either peerGetPlayerGlobalKeys() or peerGetRoomGlobalKeys().

Unicode Mappings

RoutineGSI_UNICODE Not DefinedGSI_UNICODE Defined
peerGetGlobalKeysCallbackpeerGetGlobalKeysCallbackApeerGetGlobalKeysCallbackW

peerGetGlobalKeysCallbackW and peerGetGlobalKeysCallbackA are UNICODE and ANSI mapped versions of peerGetGlobalKeysCallback. The arguments of peerGetGlobalKeysCallbackA are ANSI strings; those of peerGetGlobalKeysCallbackW are wide-character strings.