I want to write a small utility that checks to see if a host is live, then either beeps or plays a WAV file if the network connection goes down. system("ping xyz"); doesn't cut it, as it has no way to tell if the pings failed or not. I looked in the winsock.h file, hoping I'd find some clues in it to do what I need, but no luck. Anyone got any ideas to get me headed in the right direction?
Thanks!
Mark