The getnodename function returns the name of the local DECnet node. DECnet Phase IV node names consist of 1 to 6 alphanumeric characters with at least one alphabetic character.
char FAR *WSAAPI getnodename(void);
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.