Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper Tools . Book 4-Appendices - <b>nbreset()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 NBRESET()
 Resets the NetBIOS adapter
------------------------------------------------------------------------------
 Syntax

     NBRESET([<nMaxSessions>],[<nMaxNCBs>]) --> lSuccess

     Netware: 2.2 and 3.11

 Arguments

     <nMaxSessions>  Designates the maximum number of sessions possible
     after the adapter has been reset.  The default value is 0.  The value 0
     sets the internal default value for the number of sessions (normally 6).

     <nMaxNCBs>  Is the maximum number of simultaneously active NCBs
     (Network Control Blocks) after the adapter has been reset.  The default
     value is 0.  The value 0 sets the internal default value for the number
     of NCBs (normally 12).

 Returns

     NBRESET() returns .T. if the adapter has been reset successfully.

 Description

     Important!  This function must not be called in networks that base
     the internal communication on the NetBIOS protocol.  The entire network
     can be brought to a standstill!   However, on a Novell workstation,
     where the NetBIOS emulator (NETBIOS.EXE) is loaded, the function
     NBRESET() can be called without any problems.

     When an adapter is reset, the local name table is deleted and all active
     sessions are terminated.  At the same time, the maximum number of
     sessions and the maximum number of NCBs (Network Control Blocks) can be
     redefined.  CA-Clipper Tools functions for the NetBIOS communication
     require two NCBs for each session communication buffer, and one NCB each
     for the datagram communication buffer, and the sending and receiving
     buffers.

 Example

     Reset the NetBIOS adapter in a Novell network:

     IF NNETWORK()
        NBRESET()
     ENDIF

See Also: PPCCANCEL()

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