Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3932002
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T23:24:31+00:00 2026-05-19T23:24:31+00:00

I am going to put an network status icon in my GUI application. To

  • 0

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:

  1. Can the API NetworkAvailabilityChangedEventHandle only be used in C#?
  2. Can I use it in C++ (Qt)?
  3. 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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T23:24:32+00:00Added an answer on May 19, 2026 at 11:24 pm

    Where did you get the idea to use the NetworkAvailabilityChangedEventHandler delegate?

    That is explicitly not part of the Windows API, but rather a delegate function used by the .NET Framework in conjunction with the NetworkChange.NetworkAvailabilityChanged event. That explains why all the examples on MSDN are in C#—because this is only intended to be used in applications targeting the .NET Framework. If you’re writing unmanaged C++ using Qt, then you’re not using the .NET Framework, and you can’t take advantage of its functionality.

    The Windows API equivalent is the InternetGetConnectedState function, which returns a value indicating whether or not the system is currently connected to the Internet. You’ll find that its MSDN documentation is substantially friendlier towards unmanaged C++ developers, because that’s the
    primary intended audience. The information that you’re seeking is given at the bottom:

    Header          Wininet.h

    Library           Wininet.lib

    DLL                
    Wininet.dll

    You can find a list of all the WinINet functions here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is this functionality going to be put into a later Java version? Can someone
This might be a long shot, but I'm going to put it on here
this is my connection class, i know i am going to put the ip,
I'm scared that one day, I'm going to put a space or miss out
I'm going to build an API for a web app and I'm interested in
I'm trying to send a network packet of data to a hardware device. I
I'm having trouble grasping reflection in C#, so I'm going to put my specific
I've an unexpected trouble calling put on an old-school hashtable. What's going on here?
i saw the following in apples documentation on setAnimationDidStopSelector: Use of this method is
Going back to my previous question on OCSP, does anybody know of reliable OCSP

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.