NetBIOS Level 1
struct netbios_info_1 {
unsigned char nb1_net_name[NETBIOS_NAME_LEN+1];
unsigned char nb1_driver_name[DEVLEN+1];
unsigned char nb1_lana_num;
unsigned char nb1_pad_1;
unsigned short nb1_driver_type;
unsigned short nb1_net_status;
unsigned long nb1_net_bandwidth;
unsigned short nb1_max_sess;
unsigned short nb1_max_ncbs;
unsigned short nb1_max_names;
};
where:
- The first field in this data structure is identical
to that in the previous level.
- nb1_driver_name is an ASCIIZ string specifying
the network device driver name the LAN Server software uses. This field
is equivalent to the value of the nb1_net_name parameter in the Networks
section of the IBMLAN.INI file.
- nb1_lana_num is the network adapter number
used by the nb1_driver_name.
- nb1_pad_1 word-aligns the data structure components.
- nb1_driver_type is one of two values indicating
the device driver protocol type, as defined in the NETBIOS.H header file:
┌──────────────────────┬───────┬───────────────────────────────────────────────┐
│ SYMBOLIC CONSTANT │ VALUE │ TYPE OF PROTOCOL │
├──────────────────────┼───────┼───────────────────────────────────────────────┤
│ NB_TYPE_NCB │ 1 │ Network control block (NCB) protocol │
├──────────────────────┼───────┼───────────────────────────────────────────────┤
│ NB_TYPE_MCB │ 2 │ Message control block (MCB) protocol │
└──────────────────────┴───────┴───────────────────────────────────────────────┘
- nb1_net_status indicates the status of the
device driver. The bits for this field are defined as follows: ┌────────────┬─────────────────────────────────────────────────────────────────┐
│ BITS │ MEANING │
├────────────┼─────────────────────────────────────────────────────────────────┤
│ 0 │ If 1, the network software is started. │
├────────────┼─────────────────────────────────────────────────────────────────┤
│ 1 │ If 1, a loopback driver is started. │
├────────────┼─────────────────────────────────────────────────────────────────┤
│ 2-13 │ Reserved. │
├────────────┼─────────────────────────────────────────────────────────────────┤
│ 14-15 │ If 0, the network software is not started. │
│ │ If 1, the software is operating in regular mode. │
│ │ If 2, the software is operating in privileged mode. │
│ │ If 3, the software is operating in exclusive mode. │
└────────────┴─────────────────────────────────────────────────────────────────┘
- nb1_net_bandwidth indicates the number of bits
per second that the network hardware accommodates.
- nb1_max_sess indicates the number of concurrent
sessions each device driver can establish.
- nb1_max_ncbs indicates the number of NCBs that
can be outstanding at any time.
- nb1_max_names indicates the number of network
names a network card can establish, depending on the type of network card
used.
[Back: NetBIOS Level 0]
[Next: NetBiosClose or NetBios32Close]