DNS functions not found in DNSAPI

I have an issue while developing the aplication, that is browsing devices in local network via mdns. Under windows 7 i used bonjour api from apple and all was great. After updating win7 to win10 bonjour can still find devices but it can not resolve connection to them. I found the solution that with windows 10 microsoft made inside solution with WINAPI and i found that: https://docs.microsoft.com/en-us/windows/win32/api/windns/nf-windns-dnsservicebrowse. Entire DNS functions like 'DnsServiceBrowse' etc.. but i can not see them into "windns.h" header like it is specified into documentation. Even in dnsapi.dll i could not find any symbols to those functions. I am working with SDK 10.0.17763.0 under visual studio 2017. My windows 10 version is 1903. am i missing something?

1 answer

  • answered 2019-07-18 15:23 SoronelHaetir

    If using visual studio have you made sure that your project is actually using the SDK version you think is being used? The default project settings use the oldest SDK found.

    The setting is found under the general page of the project properties window (Project -> Properties, General -> Windows SDK Version).