Password


Section contents


Overview

Defined in

ce32base.oxh


Methods provided


PasswordIsEnabled

Usage

bool% = PasswordIsEnabled%:

Description

Returns true is the system password is enabled.

Return value
bool% Set to KTrue% (-1) if the system password is enabled, otherwise set to KFalse% (0)

PasswordIsValid

Usage

bool% = PasswordIsValid%:(password$)

Description

Determines whether password$ is a valid system password.

Arguments
password$ Password to be checked
Return value
bool% Set to KTrue% (-1) if the password is valid, otherwise set to KFalse% (0)

PasswordSet

Usage

result% = PasswordSet%:(oldPassword$,newPassword$)

Description

Set the system password to newPassword$, provided oldPassword$ matches the existing password.

Arguments
oldPassword$ The currently set password
newPassword$ The password to set
Return value
result% An error code

PasswordSetEnabled

Usage

result% = PasswordSetEnabled%:(password$,enabled%)

Description

Enables the system password.

Arguments
password$ The currently set password
enabled% Set to KTrue% (-1) if the password is to be enabled, otherwise set to KFalse% (0)
Return value
result% An error code