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> fswsattach()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 FSWSAttach()
------------------------------------------------------------------------------
 Purpose:
 Attach the workstation to a new file server.

 Syntax:
 iResult = FSWSAttach( lpszFileServer )

 Parameters:
 lpszFileServer The name of the file server to which to attach.

 Returns:
 A numeric value (unsigned short int).

 Description:
 FSWSAttach() returns the file server ID number if the attach was
 successful, or 0 if the file server does not exist or if an error occurs.
 NetWare will allow a workstation to attach to up to 8 file servers
 simultaneously. If the workstation is already attached to lpszFileServer,
 FSWSAttach() returns the file server ID of the file server and
 NWErrorGet() is set to "Already attached to server".

 Example:
 // To attach to new server SERVER_3:
 iFSIDGet = FSWSAttach("SERVER_3")
 if ( iFSIDGet != NOVERRINT )
    ? "Now attached to SERVER_3 as ID", iFSIDGet
 endif

See Also: FSWSDetach() FSPrefConGet() / FSPrefConSet() FSConIDGet() FSWSLogout()

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