nn::friends::CTR::GetMyApproachContext FunctionResult GetMyApproachContext( ApproachContext * pApproachContext );
| Name | Description | |
|---|---|---|
| out | pApproachContext |
Specifies a pointer to a buffer storing obtained approach context. |
| Value | Description |
|---|---|
ResultSuccess |
Process succeeded. |
ResultInvalidPointer |
Invalid pointer passed as argument. |
ResultNotInitialized |
The friend presence library is not initialized. |
ResultFriendNumMax |
The friend list is full. |
ResultInvalidPreference |
Not configured in the privacy settings for the friend list first-time startup sequence. |
ResultAddFriendProhibited |
Adding a friend is prohibited by Parental Controls. |
| Other | Another result may be returned, depending on the internal state of the daemon and other factors. |
Gets the local account information, as a pack, required to be registered as other user's friend.
To be registered as communication partner's friend, send them the ApproachContext structure obtained from this function, and have them pass that structure as an argument to AddFriendWithApproach.
Before using this function, you must first call nn::cfg::CTR::Initialize to initialize the CFG library.
ResultMiiNotExists from the Return Values and added ResultInvalidPreference.CONFIDENTIAL