chatRegisterUniqueNick

GameSpy SDK

chatRegisterUniqueNick

Registers a unique nick to the local client and cdkey.

void chatRegisterUniqueNick(
CHAT chat,
int namespaceID,
const gsi_char * uniquenick,
const gsi_char * cdkey );
RoutineRequired HeaderDistribution
chatRegisterUniqueNick<chat.h>SDKZIP

Parameters

chat
[in] Chat SDK object, previously initialized using one of the chatConnect methods.
namespaceID
[in] ID of the namespace community. Assigned by GameSpy.
uniquenick
[in] Nickname being registered.
cdkey
[in] User's CD key; this uniquely identifies the account.

Remarks

The chatRegisterUniqueNick function should be used in response to a chatNickErrorCallback. This function requests that a specified unique nick be associated with the local client and cdkey.  If an error occurs, another chatNickErrorCallback will be trigged.  Take care that this does not result in an infinite loop.

Unicode Mappings

RoutineGSI_UNICODE Not DefinedGSI_UNICODE Defined
chatRegisterUniqueNickchatRegisterUniqueNickAchatRegisterUniqueNickW

chatRegisterUniqueNickW and chatRegisterUniqueNickA are UNICODE and ANSI mapped versions of chatRegisterUniqueNick. The arguments of chatRegisterUniqueNickA are ANSI strings; those of chatRegisterUniqueNickW are wide-character strings.

Section Reference: Gamespy Chat SDK