Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Net - <b>add name</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
ADD NAME

Command code
. Hex 30 - wait option
. Hex B0 - no-wait option

Fields required
. NCB_NAME
. NCB_POST@     (if no-wait option is used)
. NCB_LANA_NUM  (number of the adapter for the add name)

Field returned
. NCB_RETCODE
. NCB_NUM
. NCB_CMD_CPLT

Immediate return codes
. Hex 00    - Command has no immediate errors
. Hex 03    - Invalid command
. Hex 21    - Interface busy
. Hex 22    - Too many commands outstanding
. Hex 23    - Invalid number in NCB_LANA_NUM field
. Hex 40/4F - Unusual network condition
. Hex 50/FE - Adapter malfunction

Final return codes
. Hex 00    - Command complete
. Hex 03    - Invalid command
. Hex 09    - No resource available
. Hex 0D    - Duplicate name in local name table
. Hex 0E    - Name table is full
. Hex 15    - Name invalid
. Hex 16    - Name is use on remote node
. Hex 19    - Name conflict detected
. Hex 21    - Interface busy
. Hex 22    - Too many commands outstanding
. Hex 23    - Invalid number in NCB_LANA_NUM field
. Hex 40/4F - Unusual network condition
. Hex 50/FE - Adapter malfunction

Function
This command adds a 16-character name to the table of names. The name added
cannot be added by anyone else on the network.

When the NETBIOS processes this command, it sends broadcast requests on the
network. If no reply is received, the name is assumed to be unique and is
added to the table of names. The command returns the number of your name in
the NCB_NUM field. This number is used in datagram support and for Receive
Any commands.

See Also: Name support commands

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