diff options
Diffstat (limited to 'winsup/cygwin/autoload.cc')
-rw-r--r-- | winsup/cygwin/autoload.cc | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/winsup/cygwin/autoload.cc b/winsup/cygwin/autoload.cc index 1e7fb783a..62e2a3b63 100644 --- a/winsup/cygwin/autoload.cc +++ b/winsup/cygwin/autoload.cc @@ -492,11 +492,11 @@ LoadDLLfunc (WSASetLastError, 4, ws2_32) // LoadDLLfunc (WSAStartup, 8, ws2_32) LoadDLLfunc (WSAWaitForMultipleEvents, 20, ws2_32) -LoadDLLfuncEx (GetIfTable, 12, iphlpapi, 1) -LoadDLLfuncEx (GetIfEntry, 4, iphlpapi, 1) -LoadDLLfuncEx (GetIpAddrTable, 12, iphlpapi, 1) -LoadDLLfuncEx (GetNetworkParams, 8, iphlpapi, 1) -LoadDLLfuncEx (GetTcpTable, 12, iphlpapi, 1) +// 50 = ERROR_NOT_SUPPORTED. Returned if OS doesn't supprot iphlpapi funcs +LoadDLLfuncEx2 (GetIfEntry, 4, iphlpapi, 1, 50) +LoadDLLfuncEx2 (GetIpAddrTable, 12, iphlpapi, 1, 50) +LoadDLLfuncEx2 (GetNetworkParams, 8, iphlpapi, 1, 50) +LoadDLLfuncEx2 (GetTcpTable, 12, iphlpapi, 1, 50) LoadDLLfunc (CoTaskMemFree, 4, ole32) @@ -559,4 +559,7 @@ LoadDLLfunc (WNetCloseEnum, 4, mpr) LoadDLLfuncEx (UuidCreate, 4, rpcrt4, 1) LoadDLLfuncEx (UuidCreateSequential, 4, rpcrt4, 1) + +LoadDLLfuncEx2 (DnsQuery_A, 24, dnsapi, 1, 127) // ERROR_PROC_NOT_FOUND +LoadDLLfuncEx (DnsRecordListFree, 8, dnsapi, 1) } |