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

 Syntax:
 wObjectType = WSLogTypGet( iConnNum )

 Parameters:
 iConnNum The station number.

 Returns:
 A numeric value (signed short int).

 Description:
 WSLogTypGet() returns the bindery object type of the object currently
 logged into station number iConnNum. If the constant NOVDEFINT is passed
 as iConnNum the current workstation is assumed.

 Returns NOVERRINT if an error occurs.

 Example:
 // To display the object type of object logged in at station 17:
 iCurrType = WSLogTypGet(17)
 do case
    case iCurrType = OT_USER
       ? "Object logged into station 17 is a user"
    case iCurrType != NOVERRINT
       ? "Object logged into station 17 is not a user"
    otherwise
       ? "Error"
 endcase

 Notes:
 A user is not the only object type which can be logged into a file
 server.

 For a list of object types, see Chapter 3, Bindery Functions.

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

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