chatEnumChannelsCallbackEach

GameSpy SDK

chatEnumChannelsCallbackEach

Called after an attempt to enumerate each channel.

typedef void (*chatEnumChannelsCallbackEach)(
CHAT chat,
CHATBool success,
int index,
const gsi_char * channel,
const gsi_char * topic,
int numUsers,
void * param );
RoutineRequired HeaderDistribution
chatEnumChannelsCallbackEach<chat.h>SDKZIP

Parameters

chat
[in] The initialized chat interface object.
success
[in] CHATTrue if success, CHATFalse if failure.
index
[in] The index of this channel
channel
[in] The name of the channel
topic
[in] A string containing the topic of the channel
numUsers
[in] The number of users in this channel
param
[in] Pointer to user data. Passed through unmodified from the initiating function.

Remarks

The chatEnumChannelsCallbackEach function is called when an attempt to enumerate each channel on the server is complete. The successful attempt will have a channel with an index, the name of the channel, the topic for that channel, the number of users.

Unicode Mappings

RoutineGSI_UNICODE Not DefinedGSI_UNICODE Defined
chatEnumChannelsCallbackEachchatEnumChannelsCallbackEachAchatEnumChannelsCallbackEachW

chatEnumChannelsCallbackEachW and chatEnumChannelsCallbackEachA are UNICODE and ANSI mapped versions of chatEnumChannelsCallbackEach. The arguments of chatEnumChannelsCallbackEachA are ANSI strings; those of chatEnumChannelsCallbackEachW are wide-character strings.

Section Reference: Gamespy Chat SDK