SCIGetParentalAccountNetworkLauncher

Syntax

#include <cafe/sci.h>

SCIStatus SCIGetParentalAccountNetworkLauncher(SCIRestrictionLevel *restriction_level,
                                               u8 slot_no);

Parameters

restriction_level Pointer to restriction_level.
SCI_RESTRICTION_LEVEL_0 This section is allowed.
SCI_RESTRICTION_LEVEL_1 This section is read-only.
SCI_RESTRICTION_LEVEL_2 This section is forbidden.
slot_no Account slot number.

Return Values

SCI_STATUS_SUCCESS Successfully done.
SCI_STATUS_FAIL Failed to get value.
SCI_STATUS_READ_ERROR Error reading the system configuration file.
SCI_STATUS_FILE_NOT_FOUND System configuration file is not found.
SCI_STATUS_ITEM_NOT_FOUND Item is not found in the system configuration file.
SCI_STATUS_ACCOUNT_NOT_FOUND Account for the slot is not created.

Description

Retrieves the restriction level of the "Miiverse" system configuration setting.

A restriction level of SCI_RESTRICTION_LEVEL_1 indicates that the user can read posts from other users, but cannot publish any posts.

Initialize the ACT library before using this function.

NOTE:
The slot_no argument represents the account slot number obtained through the ACT library. slot_no is different from the number added to the filename of the system settings file (p_acct[X].xml). The associations between the system settings files and accounts are managed within the SCI library.
NOTE:
Run System Config Tool at least once before using SCI. System Config Tool automatically creates the default system setting files at startup. If you have never run System Config Tool, this function will return a SCI_STATUS_FILE_NOT_FOUND error.

Do Not Call From

None.

See Also

System Config Tool

Revision History

2013/05/08 Automated cleanup pass.
2013/01/23 Updates for System Config Tool
2012/07/03 Modified the argument name.
2012/05/09 Initial version.


CONFIDENTIAL