dongye1942 2018-10-24 05:11
浏览 222

从Golang调用Windows API

There is a Windows API function I need to call from Golang:

INetworkListManager::GetConnectivity

https://docs.microsoft.com/en-us/windows/desktop/api/netlistmgr/nf-netlistmgr-inetworklistmanager-getconnectivity

I've read through the docs here:

https://github.com/golang/go/wiki/WindowsDLLs

But it's still not clear to me how I would call this API. How would I do it, and use the result to check for internet connectivity?

  • 写回答

0条回答 默认 最新

    报告相同问题?