#include <dwc.h>
BOOL DWC_CheckFriendKey( const DWCUserData* userdata, u64 friend_key );
BOOL DWC_CheckFriendKeyLegacy( const DWCUserData* userdata, u64 friend_key );
Checks the legitimacy of the friend registration key specified by friend_key. When adding a friend registration key to the friend roster, use DWC_CreateFriendKeyToken to create friend data based on that friend registration key.
Either prompt the user to re-enter information if they enter an invalid key or display an input error.
Note: Starting from NITRO-DWC 3.0, a different method is being employed to generate the value used to check the validity of friend registration keys. Because of this change, the friend registration keys created with older versions of NITRO-DWC are no longer compatible with the DWC_CheckFriendKey function. If for some special reason you need to be able to deal with these legacy friend registration keys, use the DWC_CreateFriendKeyLegacy function and the DWC_CheckFriendKeyLegacy function.
userdata |
Pointer to the DWCUserData structure where user data is stored. |
friend_key |
Friend registration key |
TRUE |
valid |
FALSE |
invalid |
DWC_CreateFriendKeyToken ,
DWC_CreateFriendKey ,
DWC_GetFriendKey
2008/03/02 Added text about compatibility with older specification.
2008/01/16 Added warning about the compatibility of friend registration keys.
2005/12/16 Made corrections
2005/10/20 Initial version.
CONFIDENTIAL