ade_userset

Land Desktop Development ARX CPP SDK

Up a level
ade_userset
 
 

Logs in a user.

int

ade_userset(

char* username,

char* password);

Returns RTNORM or an error code

username Login name or NULL.
password Password or NULL

If either argument is omitted, the User Login dialog box displays. If a login name was specified, it appears in the dialog's Login Name field.

If both arguments are specified, but the user cannot be logged in, one of the following messages is added to the error stack:

Invalid user name.
Invalid password.

If the drawing set includes active drawings containing locked entities, the current user cannot be changed. If you attempt to log in a different user under those conditions, the following error message is added to the error message stack:

Cannot login again when drawings are locked/active.