سؤال

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