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> wslogidget()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 WSLogIDGet()
------------------------------------------------------------------------------
 Purpose:
 Get the user ID logged in at a workstation.

 Syntax:
 dwUserID = WSLogIDGet( iConnNum )

 Parameters:
 iConnNum The station number.

 Returns:
 A numeric value (unsigned long int).

 Description:
 WSLogIDGet() returns the ID number of the user currently logged into
 station number iConnNum. If iConnNum is specified as the constant
 NOVDEFINT, the current workstation connection number is assumed.

 Returns NOVERRLONG if an error occurs.

 Example:
 // To display the ID number of the current user:
 dwUserID = WSLogIDGet( NOVDEFINT )
 if ( dwUserID != NOVERRLONG )
    ? "The ID number of the current user is", dwUserID
 endif
 // To display the ID number of the user logged into station number 10:
 dwUserID = WSLogIDGet( 10 )
 if ( dwUserID != NOVERRLONG )
    ? "The ID number of the user at station 10 is ",dwUserID
 endif

See Also: WSLogNmeGet() UsrNameGet()

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