Hello all.
I would like to use the Connection Manager API to see what
connection(s) are currently established. As far as I've seen, I can
use ConnMgrConnectionStatus to get the information. However, that
function requires a HANDLE to that connection, which is acquired via
ConnMgrEstablishConnectionSync.
Now, if I enumerate the connections, then get the handle in order to
check status, does that mean that there will be a connection attempt
request for each connection?
Is there a way to get the connection status without issuing a
connection request (sync or async)? I'm thinking one workaround could
be to use a short (100-500ms) timeout in EstablishConnectionSync, so if
the connection is already connected, it will immediately return.
Otherwise (if not connected), it will "immediately" timeout. Sounds
kind of hack-ish to me, though.
In case platform is relevant here, I intend to target WM 2003 and
higher.
Thanks in advance!
-Carlos