I just did a small tool that uses getnameinfo() function in order to get computers names using an IPs range.
Everything it's fine but I don't like that I got an exception in my output window:
Code:
First-chance exception at 0x77d67ded (kernel32.dll) in scanComputersName.exe: 0x000006BA: The RPC server is unavailable.
This exception appears for each range's IP that it's not assigned to a real station.

My first point of view it's that this isn’t a big issue.
http://support.microsoft.com/kb/884564
http://support.microsoft.com/kb/257187

But I don't like exceptions. That's why I'm looking for experienced opinions in this topic.