ObjectManager Interface

Login Method

int Login(string sUsername, string sPassword, 
    ref IUser user)

This method executes a user login with a given password. If the login is successful, the user holds a valid reference to the user’s object. If the login is not successful, check the return value.

Logout Method

int Logout(IUser user)

Logs out the user.

CreateUser Method

int CreateUser(string sUsername, string sPassword);
Creates a new user.
Note: This method does not login the user.

DeleteUser Method

int DeleteUser(IUser user);

Deletes the user. The user is no longer valid after this call.

GetErrorMsg Method

string GetErrorMsg(int errNo);

Returns a description for the error number.