Hi guys
Is there a function that retrieves the hostname as a string of the computer in which an application is running?
Thanks in advance
Printable View
Hi guys
Is there a function that retrieves the hostname as a string of the computer in which an application is running?
Thanks in advance
Have a look at gethostbyname in MSDN
Do you mean Computer Name Or Computer's Full DNS name ?Quote:
Originally Posted by elektroman
You can use GetComputerName Or GetComputerNameEx.
I mean the name that I obtain when from prompt I type hostname
Thats your local computer name, can be obtained by calling GetComputerName.Quote:
Originally Posted by elektroman