nn::friends::CTR::GetMyApproachContext Function

Syntax

Result GetMyApproachContext(
     ApproachContext * pApproachContext
);

Parameters

Name Description
out pApproachContext Specifies a pointer to a buffer storing obtained approach context.

Return Values

Returns the result of the operation.

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.

Description

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.

Revision History

2012/04/24
Removed ResultMiiNotExists from the Return Values and added ResultInvalidPreference.
2011/12/16
Initial version.

CONFIDENTIAL