#include <dwc.h>
u64 DWC_CreateFriendKey( const DWCUserData* userdata );
Generates a friend registration key from the user data that will be exchanged with friends. Display the acquired friend registration key as a 12-digit base-10 numerical value. In friend registration, create friend information from the friend registration key entered by the user using the DWC_CreateFriendKeyToken
function, then add the created information to the friend roster.
Furthermore, assume that friend registration keys may sometimes be entered incorrectly; therefore, prepare an interface that allows users to re-enter the friend registration key until it is accepted.
When the Nintendo Wi-Fi Connection has never been used, a friend registration key cannot be created, so make some kind of interface to create one after making a connection, or display a message with those instructions.
userdata |
Pointer to the DWCUserData structure where user data is stored. |
positive value |
Friend registration key |
0 |
Failed because the profile is not obtained. |
12/16/2005 Revisions.
10/20/2005 Initial version.