Reputation: 4938
I'd like to make my WM-based device reconnect to GPRS network, if connection has been broken.
There is a function in WinAPI
HRESULT WINAPI ConnMgrConnectionStatus(
HANDLE hConnection,
DWORD *pdwStatus
);
but it requires previous connection handle, and in my case it can be established manually.
Is there a way to get connection status without handles or subscribe to break event?
I can just check google.com, but that doesn't look good.
Regards,
Upvotes: 0
Views: 256
Reputation: 3974
Why can't you use the ConnMgrQueryDetailedStatus
to get all the connections and run through them to check what you have?
Upvotes: 1