AuthCallBackFn
Called when the user is either authorized or rejected.
- typedef void (*AuthCallBackFn)(
- int gameid,
- int localid,
- int authenticated,
- char * errmsg,
- void * instance );
Routine | Required Header | Distribution |
---|---|---|
AuthCallBackFn | <gcdkeys.h> | SDKZIP |
Parameters
- gameid
- [in] The game ID for which authentication is requested.
- localid
- [in] The id that was passed into gcd_authenticate_user.
- authenticated
- [in] Indicates whether the user was authenticated: 1 if authenticated; 0 if not.
- errmsg
- [in] Error message if user was not authenticated.
- instance
- [in] The same instance as was passed into the gcd_authenticate_user.
Remarks
This function will be called within two seconds of gcd_authenticate_user, even if the validation server hasn't responded yet.
If the user was not authenticated, the errmsg parameter contains a descriptive string of the reason (either CD Key not valid, or CD Key in use).
Section Reference: Gamespy CDKey SDK