09-04-2014 12:43 PM
Hello all,
I am trying to figure how to use an activex callback when the computers(windows 7) network connection changes.
I am able to access and use properties of the NETWORKLIST.INetworkListManager class but I am not able to get the Reg Event Callback to work for NETWORKLIST.INetworkListManager.NetworkConnectivityChanged.
Does anyone have experience with this class or more ActiveX knowledge to get this working?
Perhaps there is another more commonly used method to see network changes without polling?
I hope I have provided enough details to get some help. Thank you for your time.
09-05-2014 01:56 PM
@Wandern wrote:
Hello all,
I am trying to figure how to use an activex callback when the computers(windows 7) network connection changes.
I am able to access and use properties of the NETWORKLIST.INetworkListManager class but I am not able to get the Reg Event Callback to work for NETWORKLIST.INetworkListManager.NetworkConnectivityChanged.
Does anyone have experience with this class or more ActiveX knowledge to get this working?
Perhaps there is another more commonly used method to see network changes without polling?
I hope I have provided enough details to get some help. Thank you for your time.
I cannot get this working in LabVIEW 2013 32-bit.
Not sure why.
I am able to get the callback to work in C# Express 2010.
09-05-2014 03:28 PM
Yeah, I am also able to get it to work using examples found for c# and c++, but no luck using labview (2012 here). It has stumped me.
09-05-2014 03:43 PM - edited 09-05-2014 03:44 PM
One thing I noticed in your VI is that your Event Structure isn't in a WHILE loop.
You might create a Timeout case and "read" the network status as a workaround.
09-05-2014 04:29 PM
Yeah, polling isn't a problem. There are a few solutions for that, but I was wanting to avoid doing it as it is more expensive than using a callback event.