Platform SDK: Windows Sockets

getnodename

The getnodename identifier returns the name of the local DECnet node. DECnet Phase IV node names consist of one to six alphanumeric characters with at least one alphabetic character.

char FAR *WSAAPI getnodename(void);

Return Values

The function returns the address of a static string that contains the local node's ASCIZ DECnet name, or a NULL pointer if DECnet is not installed. The maximum size for a returned string is DN_MAXNODEL. The application must copy this data before issuing another getnodename call.