peerAuthenticateCDKeyCallback

GameSpy SDK

peerAuthenticateCDKeyCallback

Called when peerAuthenticateCDKey and attempt to authenticate the CD-Key is finished.

typedef void (*peerAuthenticateCDKeyCallback)(
PEER peer,
int result,
const gsi_char * message,
void * param );
RoutineRequired HeaderDistribution
peerAuthenticateCDKeyCallback<peer.h>SDKZIP

Parameters

peer
[in] Initialized peer object.
result
[in] Indicates the result of the attempt
message
[in] A text message representing the result
param
[in] Pointer to user data. This is optional and will be passed unmodified to the callback function.

Remarks

The peerAuthenticateCDKeyCallback function gets called when an attempt to authenticate a CD key is finished. If the result has a value of 1, the CD key was authenticated. Otherwise, the CD key was not authenticated.

Unicode Mappings

RoutineGSI_UNICODE Not DefinedGSI_UNICODE Defined
peerAuthenticateCDKeyCallbackpeerAuthenticateCDKeyCallbackApeerAuthenticateCDKeyCallbackW

peerAuthenticateCDKeyCallbackW and peerAuthenticateCDKeyCallbackA are UNICODE and ANSI mapped versions of peerAuthenticateCDKeyCallback. The arguments of peerAuthenticateCDKeyCallbackA are ANSI strings; those of peerAuthenticateCDKeyCallbackW are wide-character strings.

Section Reference: Gamespy Peer SDK