Hi!
I wrote a little program, which is working like a ping command(i use ICMPSendEcho2), but it gives back a return value, not only a text message. Now I have only one question. How can I programmatically check if a hostname exist or not? I mean if i want to ping computerA, and i don't even have a computerA then it should say what the originally ping says : "Ping request couldn't find host...". This means that there is no computer with that name. But if i ping computerB(when it's turned off) with my ping then it says Host not found. So my question is how can i decide that a computer doesn't exists, or it's only turned off?
Thanks in advance!
kampi