GetStationAddress
Returns the physical node address
#include <nwconn.h>
void GetStationAddress (
BYTE *nodeAddress);
GetStationAddress always returns the node address as 0x000000000001. The reason for this is that the NetWare 3.x and 4.x OS uses an internal network number, and the server is node number 1 on the internal network.
In general, the nodeAddress uniquely identifies an object on a network. The internetwork address (network number and physical node address) uniquely identifies an object throughout an internetwork.
This function does not return the 4-byte networkNumber, which is also needed to send packets on the internet. The complete address of a station can be obtained by calling GetConnectionNumber and then calling GetInternetAddress.
#include <stdio.h> #include <stdlib.h> #include <nwconn.h> main() { int ccode; BYTE nodeAddress[6]; GetStationAddress (nodeAddress); printf ("Station Address: %02X%02X%02X%02X%02X%02X", nodeAddress[0], nodeAddress[1], nodeAddress[2], nodeAddress[3], nodeAddress[4], nodeAddress[5] ); }