In Windows Mobile (5/6) SDK, where did windns.h go?

According to http://msdn.microsoft.com/en-us/library/aa916070.aspx (DnsQuery_W), DNS query libraries are available to Windows Mobile / CE developers for versions 5.0 and above. However, "#include" gives nasty "file not found" errors. What gives? Oddly enough, "dnsapi.lib" is available. Does Microsoft really expect developers to clean up the file from somewhere? ..

0


source to share


2 answers


The posted thread here claims that this API is actually not available in Windows Mobile 5 (and possibly later?), Despite expressing otherwise. I've looked at Mobile 5 and 6 SDKs and haven't seen this API, so maybe a thread suggestion might work for you:

If it's a simple hostname-> IP address (IPv4 or v6) then you can use getnameinfo in Winsock. DNSQuery_W only if you do, as non-A / AAAA. If you do that we really don't have helpers to do it for you from the OS side - I'm sorry. You can look around to see if there is a helper library floating around so you can recompile for CE (if you're comfortable with any licensing agreements they might impose on you.)



getnameinfo should be documented here (for Windows Mobile) if that helps.

+1


source


If you are really after "windns.h" I found it in the platform builders WM5 / WM6 / WM6.1 in

\ Public \ Common \ SDK \ INC



The hard part is getting access to WM Platform Builder if your ISV. This I cannot help you.

0


source







All Articles