Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Novlib 3.30 Online Reference - <b> wslognmeget()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 WSLogNmeGet()
------------------------------------------------------------------------------
 Purpose:
 Get the user name logged in at a workstation.

 Syntax:
 lpszUserName = WSLogNmeGet( iConnNum )

 Parameters:
 iConnNum The station number.

 Returns:
 A character string of length 47.

 Description:
 WSLogNmeGet() returns the login name of the user currently logged
 into station number iConnNum.

 If the constant value NOVDEFINT is passed for iConnNum, the current
 workstation connection number is assumed.

 Returns an empty string if an error occurs.

 Example:
 // To display the login name of the current user:
 lpszCurrName = WSLogNmeGet(NOVDEFINT)
 if ( !empty ( lpszCurrName ) )
    ? "The currently logged user is ", lpszCurrName
 endif
 // To display the login name of the user logged into station number 8:
 lpszCurrName = WSLogNmeGet( 8 )
 if ( !empty ( lpszCurrName ) )
    ? lpszCurrName, " is the current user on station 8"
 endif

See Also: FSWSLogin() FSWSLogout() FSObjLst() WSLogIDGet()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson