nn::friends::CTR::ResultToErrorCode Function

Syntax

u32 ResultToErrorCode(
     const Result & result
);

Arguments

Name Description
in result Specifies a result obtained from a function in the friend presence library.

Return Values

Returns the error code corresponding to the specified result.
Returns 0 for results that do not need to display an error code, or for results from functions not in the FRIENDS library.

Value Description
0 There is no corresponding friend-related error code.
Other Error code.

Description

Gets an error code from the result of a function in the friend presence library.

Revision History

2011/03/11
Added specific examples of return values.
2010/08/16
Initial version.

CONFIDENTIAL