peerSetGlobalKeys

GameSpy SDK

peerSetGlobalKeys

Set global keys on the local player.

void peerSetGlobalKeys(
PEER peer,
int num,
const gsi_char ** keys,
const gsi_char ** values );
RoutineRequired HeaderDistribution
peerSetGlobalKeys<peer.h>SDKZIP

Parameters

peer
[in] Initialized peer object.
num
[in] Number of keys in the keys array.
keys
[in] Array of keys to set values for.
values
[in] Array of values to set.

Remarks

The peerSetGlobalKeys function sets global keys on the local player. At least one key must be set. This will fail if the peer object is not connected.

Unicode Mappings

RoutineGSI_UNICODE Not DefinedGSI_UNICODE Defined
peerSetGlobalKeyspeerSetGlobalKeysApeerSetGlobalKeysW

peerSetGlobalKeysW and peerSetGlobalKeysA are UNICODE and ANSI mapped versions of peerSetGlobalKeys. The arguments of peerSetGlobalKeysA are ANSI strings; those of peerSetGlobalKeysW are wide-character strings.

Section Reference: Gamespy Peer SDK