chatAuthenticateCDKey
Allows pre-chat cd key authentication via the chat server.
- void chatAuthenticateCDKey(
- CHAT chat,
- const gsi_char * cdkey,
- chatAuthenticateCDKeyCallback callback,
- void * param,
- CHATBool blocking );
Routine | Required Header | Distribution |
---|---|---|
chatAuthenticateCDKey | <chat.h> | SDKZIP |
Parameters
- chat
- [in] Chat SDK object, previously initialized using one of the chatConnect methods.
- cdkey
- [in] CD key to validate; should be a valid CD key for the set game title.
- callback
- [in] Optional user-supplied function to be called when the operation has completed.
- param
- [in] Optional pointer to user data; will be passed unmodified to the callback function.
- blocking
- [in] If CHATTrue, return only after the operation has completed; otherwise, return immediately.
Remarks
The chatAuthenticateCDKey function may be used to authenticate a user’s cdkey before they enter the chat room. This should not be a substitute for a cdkey during gameplay. Arcade does not support this call, so users in Arcade will be able to enter chat without this validation. This method most usefull for developers who opt-out of the Arcade compatability requirements or have a separate chat area for in-game clients.
Unicode Mappings
Routine | GSI_UNICODE Not Defined | GSI_UNICODE Defined |
---|---|---|
chatAuthenticateCDKey | chatAuthenticateCDKeyA | chatAuthenticateCDKeyW |
chatAuthenticateCDKeyW and chatAuthenticateCDKeyA are UNICODE and ANSI mapped versions of chatAuthenticateCDKey. The arguments of chatAuthenticateCDKeyA are ANSI strings; those of chatAuthenticateCDKeyW are wide-character strings.
Section Reference: Gamespy Chat SDK
See Also: ChatConnect