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>nbaddname()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 NBADDNAME()
 Adds a NetBIOS station name to the local name table
------------------------------------------------------------------------------
 Syntax

     NBADDNAME(<cName>) --> nNamenum

     Netware: 2.2 and 3.11

 Argument

     <cName>  Designates the station name that is added to the local name
     table.  The name can be up to 15 characters long and is case sensitive.

 Returns

     NBADDNAME() returns the number that has been assigned to
     the station name.  If an error occurs (for example, if the name table is
     full), the function returns 0.

 Description

     NBADDNAME() adds the station name <cName> to the local name table.  If
     the name has been added successfully, the name can be passed as the
     source name in the functions NBDOPEN(), NBSCALL(), or NBSLISTCON().  The
     workstation can receive datagrams addressed to the group <cName> or
     react to a connection request addressed to <cName>.

     Unlike group names, station names must be unique.  If <cName> is already
     in use on another station or already defined as a group name,  the call
     of NBADDNAME() fails and the function returns 0.

 Example

     Add the station name MIKE to the local name table:

     IF NBADDNAME('MIKE')>0
        ? 'Name has been added successfully!'
     ELSE
        ? 'Name could not be added!'
     ENDIF

See Also: NBADDGROUP() NBDELNAME()

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