I'm quite new to windows sdk programming and i'm trying to write a code to discover devices on the network. The code should be able to get the name of the device(hostname) and ipadress of the device. Are there any predefinded Api's to do the same. I googled and got certain api's such as

 WNetGetNetworkInformation
 WNetGetResourceInformation

which didn't seem to serve the purpose.

有帮助吗?

解决方案

Take a look at this SO Article -- from today!

It shows how you can retrieve all information for a network adapter.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top