I am going to put an network status icon in my GUI application. To get the network status notification, I am trying to use the Windows API. For this I am thinking to use NetworkAvailabilityChangedEventHandler
in my application. I am very new to programming with the Windows API and framework. Can anybody help me in the following things:
- Can the API
NetworkAvailabilityChangedEventHandle
only be used in C#? - Can I use it in C++ (Qt)?
- Which header file must I include? (I checked in MSDN for this. but they are using namespace for this. All the examples are in C#. I am not able to understand how to implement it in my C++ code.)
I will be grateful if somebody can give me a detailed code snippet for using this windows event handler, including the .h file or namespace to be included.