GetProfileIDFromCD
Given a nickname and CD Key hash, this will lookup the profileid for the user.
- void GetProfileIDFromCD(
- int localid,
- gsi_char * nick,
- char * keyhash,
- ProfileCallbackFn callback,
- void * instance );
Routine | Required Header | Distribution |
---|---|---|
GetProfileIDFromCD | <gpersist.h> | SDKZIP |
Parameters
- localid
- [in] Your game-specific reference number for this player
- nick
- [in] The nickname of the user whose profileid you are looking up
- keyhash
- [in] The CD Key Hash of the user whose profileid you are looking up
- callback
- [in] Callback to be called when the lookup is completed.
- instance
- [in] Pointer that will be passed to the callback function (for your use.)
Remarks
If the user has never authenticated (and has no persistent data associated with them),
the callback will indicate a failure. No persistent data can be retreived for the user,
since they don't have any stored. Persistent data can be stored, but only after authenticating
with PreAuthenticatePlayerCD.
Section Reference: Gamespy Persistent Storage SDK