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> fswsloginnw()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 FSWSLoginNW()
------------------------------------------------------------------------------
 Purpose:
 Log a user into the file server.

 Syntax:
 bResult = FSWSLoginNW( lpszUserName, lpszPassword, wObjectType )

 Parameters:
 LpszUserName The user's login name.
 LpszPassword The user's password.
 WobjectType  The object type.

 Returns:
 A boolean value (TRUE or FALSE).

 The CA-Clipper name for this function is:
 FSWSLoginNW()

 Description:
 FSWSLoginNW() returns TRUE if the user specified by lpszUserName with
 password lpszPassword is logged into the default file server.

 Returns FALSE if not, or if an error occurs. In all cases the current
 workstation user (if any) is logged out before attempting to log in the new
 user. The parameter wObjectType can be used to log in users of an unusual
 object type. It is not advisable to use this option unless you are very
 familiar with the NetWare operating system.

 Example:
 // To log a user DAVE with password DAVESPASS into the default file server:
 if ( FSWSLoginNW("DAVE","DAVESPASS",OT_USER) )
    ? "User DAVE is now logged in"
 endif

 Notes:
 This function is only available to programs that use the NOVLIB
 DLLs under Windows. This function requires the NWCALLS.DLL be available as
 program runtime.

 CA-Clipper only - if the wObjectType parameter is omitted, NOVLIB will
 login the object as a USER

See Also: FSWSLogin() FSWSLogout() FSLoginStatusGet() / FSLoginStatusSet()

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