|
-
February 13th, 2007, 05:00 AM
#1
Obtain Hostname
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
-
February 13th, 2007, 05:07 AM
#2
Re: Obtain Hostname
Little by little one goes far
Keep moving.......!
Nothing is impossible !
-
February 13th, 2007, 05:10 AM
#3
Re: Obtain Hostname
Have a look at gethostbyname in MSDN
-
February 13th, 2007, 05:16 AM
#4
Re: Obtain Hostname
 Originally Posted by elektroman
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
Do you mean Computer Name Or Computer's Full DNS name ?
You can use GetComputerName Or GetComputerNameEx.
Regards,
Ramkrishna Pawar
-
February 13th, 2007, 05:38 AM
#5
Re: Obtain Hostname
I mean the name that I obtain when from prompt I type hostname
-
February 13th, 2007, 05:39 AM
#6
Re: Obtain Hostname
 Originally Posted by elektroman
I mean the name that I obtain when from prompt I type hostname
Thats your local computer name, can be obtained by calling GetComputerName.
Regards,
Ramkrishna Pawar
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|