chatSetChannelKeys

GameSpy SDK

chatSetChannelKeys

Set key/values on a channel or the local user.

void chatSetChannelKeys(
CHAT chat,
const gsi_char * channel,
const gsi_char * user,
int num,
const gsi_char ** keys,
const gsi_char ** values );
RoutineRequired HeaderDistribution
chatSetChannelKeys<chat.h>SDKZIP

Parameters

chat
[in] Chat SDK object, previously initialized using one of the chatConnect methods.
channel
[in] Name of the chat channel whose keys are being set.
user
[in] User to assign keys to.  May be NULL.  Only channel operators may set keys on other players.
num
[in] Number of key/value pairs being set.
keys
[in] Array of keys being set.
values
[in] Array of values being set, in the same order as their keys.

Remarks

The chatSetChannelKeys function may be used to set channel keys on a member or on the channel itself.  Only channel operators may set keys on other players.

Unicode Mappings

RoutineGSI_UNICODE Not DefinedGSI_UNICODE Defined
chatSetChannelKeyschatSetChannelKeysAchatSetChannelKeysW

chatSetChannelKeysW and chatSetChannelKeysA are UNICODE and ANSI mapped versions of chatSetChannelKeys. The arguments of chatSetChannelKeysA are ANSI strings; those of chatSetChannelKeysW are wide-character strings.

Section Reference: Gamespy Chat SDK