Amnesia case? Who am I?

Hello Dr. GUI!

Is there a call to get the Internet Protocol (IP) domain name directly for the network on which the machine is connected? On UNIX we have the getdomainname() function call. Is there something similar on Microsoft Windows NT/Windows 95?

Thanks,
Shishir Jain

Dr. GUI replies:

It seems you don't know who you are. Dr. GUI is glad that you've come to him quickly—no sense in not knowing who you are for 12 years!

The WinSock APIs will give you this information. First call gethostname() to give you the host name of your machine, then pass this to gethostbyname() to get a fully qualified domain name.