GetApproachContextScreenName

nn::friends::CTR::GetApproachContextScreenName Function

Syntax

Result GetApproachContextScreenName(
     char16 screenName[SCREEN_NAME_SIZE],
     const ApproachContext & approachContext,
     bool replaceForeignCharacters = true,
     u8 * pFontRegion = NULL
);

Parameters

Name Description
out screenName[SCREEN_NAME_SIZE] Specifies a pointer to a buffer that stores acquired screen names.
in approachContext Specifies the approach context of the user for which to get the display name.
in replaceForeignCharacters Specifies whether to convert non-ASCII characters to ? when the local host's font region differs from the one for the display name included in the approach context.
pFontRegion
in pFontRegionList Specifies a pointer to a buffer that stores the font region of the display name included in the approach context. Specify NULL if not needed.

Return Values

Returns the result of the operation.

Value Description
Result::IsSuccess Process succeeded.
ResultInvalidPointer Invalid pointer passed as argument.
ResultNotInitialized The friend presence library is not initialized.
ResultInvalidArgument Approach context decryption failed.
Other Another result may be returned, depending on the internal state of the daemon and other factors.

Description

Gets the user's display name included in the approach context.

Revision History

2011/12/16
Initial version.

CONFIDENTIAL