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 6667535
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T02:56:38+00:00 2026-05-26T02:56:38+00:00

My application needs to send some packets every 30 minutes, but I don’t want

  • 0

My application needs to send some packets every 30 minutes, but I don’t want to send via charged services like GPRS/EDGE/… I would like to send only if a WiFi / ActiveSync is UP.

How do I find out if:

  • There is currently Wifi used as network
  • There is currently GPRS/EDGE/UMTS… used as network
  • There is currently Active Sync used
  • 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-26T02:56:38+00:00Added an answer on May 26, 2026 at 2:56 am

    RESOLVED

    Ok, found that working :

    void TEST()
    {
      CONNMGR_CONNECTION_DETAILED_STATUS *StatusBuffer;
      CONNMGR_CONNECTION_DETAILED_STATUS *StatusBufferTemp;
      DWORD               pcbBufferSize = 0;
    
      ConnMgrQueryDetailedStatus(NULL, &pcbBufferSize);
      StatusBuffer = (CONNMGR_CONNECTION_DETAILED_STATUS *)new BYTE[pcbBufferSize];
      ConnMgrQueryDetailedStatus(StatusBuffer, &pcbBufferSize);
      StatusBufferTemp = StatusBuffer;
    
      while(StatusBufferTemp != NULL)
      {
        if(StatusBufferTemp->dwConnectionStatus == CONNMGR_STATUS_CONNECTED)
        {
          if(StatusBufferTemp->dwType == CM_CONNTYPE_NIC)
          {
            switch(StatusBufferTemp->dwSubtype)
            {
             case CM_CONNSUBTYPE_NIC_WIFI :
              MessageBox(0,TEXT(""),_T("CM_CONNSUBTYPE_NIC_WIFI"),MB_OK);
              break;
    
              case CM_CONNSUBTYPE_NIC_ETHERNET :
              break;
            }
          }
    
          if(StatusBufferTemp->dwType == CM_CONNTYPE_CELLULAR)
          {
            switch(StatusBufferTemp->dwSubtype)
            {
            case CM_CONNSUBTYPE_CELLULAR_CSD :
              break;
    
            case CM_CONNSUBTYPE_CELLULAR_GPRS :
              MessageBox(0,TEXT(""),_T("CM_CONNSUBTYPE_CELLULAR_GPRS"),MB_OK);
              break;
    
            case CM_CONNSUBTYPE_CELLULAR_1XRTT :
              MessageBox(0,TEXT(""),_T("CM_CONNSUBTYPE_CELLULAR_1XRTT"),MB_OK);
              break;
    
            case CM_CONNSUBTYPE_CELLULAR_1XEVDO :
              MessageBox(0,TEXT(""),_T("CM_CONNSUBTYPE_CELLULAR_1XEVDO"),MB_OK);
              break;
    
            case CM_CONNSUBTYPE_CELLULAR_1XEVDV :
              break;
    
            case CM_CONNSUBTYPE_CELLULAR_EDGE :
            MessageBox(0,TEXT(""),_T("CM_CONNSUBTYPE_CELLULAR_EDGE"),MB_OK);
              break;
    
            case CM_CONNSUBTYPE_CELLULAR_UMTS :
                MessageBox(0,TEXT(""),_T("CM_CONNSUBTYPE_CELLULAR_UMTS"),MB_OK);
              break;
    
            case CM_CONNSUBTYPE_CELLULAR_VOICE :
              MessageBox(0,TEXT(""),_T("CM_CONNSUBTYPE_CELLULAR_VOICE"),MB_OK);
              break;
    
            case CM_CONNSUBTYPE_CELLULAR_PTT :
              break;
    
            case CM_CONNSUBTYPE_CELLULAR_HSDPA :
                MessageBox(0,TEXT(""),_T("CM_CONNSUBTYPE_CELLULAR_HSDPA"),MB_OK);
                break;
            }
          }
    
          if(StatusBufferTemp->dwType == CM_CONNTYPE_PROXY)
          {
            switch(StatusBufferTemp->dwSubtype)
            {
            case CM_CONNSUBTYPE_PROXY_WAP :
              MessageBox(0,TEXT(""),_T("CM_CONNSUBTYPE_PROXY_WAP"),MB_OK);
              break;
    
            case CM_CONNSUBTYPE_PROXY_HTTP :
             MessageBox(0,TEXT(""),_T("CM_CONNSUBTYPE_PROXY_HTTP"),MB_OK);
              break;
            }
          }
    
          if(StatusBufferTemp->dwType == CM_CONNTYPE_PC)
          {
            switch(StatusBufferTemp->dwSubtype)
            {
            case CM_CONNSUBTYPE_PC_DESKTOPPASSTHROUGH :
              MessageBox(0,TEXT(""),_T("CM_CONNSUBTYPE_PC_DESKTOPPASSTHROUGH"),MB_OK);
              break;
    
            case CM_CONNSUBTYPE_PC_UNKNOWN :
              break;
            }
          }
    
        }
        StatusBufferTemp = StatusBufferTemp->pNext;
      }
    
      delete StatusBuffer; 
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am creating a windows application which needs to send some sms to mobile
I have a Django application which sometimes needs to send some data through TCP
I am working on an iphone application that needs to send some images over
My iPhone application needs to dial a phone number and send some data to
I need to implement some form of communication mechanism in my application, to send
We have a client application that needs to send messages to a server for
I'm building a web application that needs to send notifications by SMS. What SMS
Let's say your creating an application that needs to send you an email monthly.
I've got a C# application going that needs to send out an html email
I am working on a Web application that needs to send XML to a

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.