Cicode Programming Reference > Cicode Function Categories > Security Functions Introduction > WhoAmI

WhoAmI

Displays the user name and full name of the user currently logged-in to the system. When the current logged on user is Windows user this function returns the user’s full name in the format of <DomainName>\<UserName>. The names are displayed at the prompt AN.

Syntax

WhoAmI()

Return Value

0 (zero) if successful, otherwise an error is returned.

Related Functions

Name, FullName, UserInfo

Example

/* Display the user's full name and user name at the prompt AN. */
WhoAmI();

See Also

Security Functions