ade_userget

Land Desktop Development ARX CPP SDK

Up a level
ade_userget
 
 

Gets the login name or entity lock name of the local user.

int

ade_userget(

ade_boolean for_entity_locks,

char* username);

Returns RTNORM or an error code.

for_entity_locks What to do if the local user is not logged into the application (optional): TRUE or FALSE, where TRUE = Get the user name used to identify the owner of object locks set locally, and FALSE = Return FALSE. Omitting this argument is the same as supplying FALSE.
username The user name or the empty string.

A user name can have as many as 32 characters.

If the local user is logged into the application, the user's application login name is used to identify the owner of object locks set locally. If the local user is not logged into the application, the user's operating system login name is used.

This function helps you determine if the owner of a particular object lock is the local user.