SCIGetParentalEnable

Syntax

#include <cafe/sci.h>

SCIStatus SCIGetParentalEnable(SCIBoolean *enable);

Parameters

enable Pointer to get status.
SCI_ENABLE (SCI_TRUE) Restriction settings which user sets are enabled.
SCI_DISABLE (SCI_FALSE) All restriction settings are disabled.

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.

Description

Retrieves the state of the "Use Parental Control" setting available from the System Config Tool:Parental Control Setting. SCI_FALSE means "All restriction settings are disabled". SCI_TRUE means "Restriction settings which user sets are enabled".

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 System Config Tool
2012/10/17 Modified explanation.
2012/05/09 Initial version.


CONFIDENTIAL