Account Options

  1. Sign in
Google Groups Home
« Groups Home
Programmatically launch Network Connection Status
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Suman  
View profile  
 More options Oct 7 2003, 5:32 pm
Newsgroups: microsoft.public.windowsxp.network_web
From: "Suman" <sumanson...@yahoo.com>
Date: Tue, 7 Oct 2003 14:29:49 -0700
Local: Tues, Oct 7 2003 5:29 pm
Subject: Programmatically launch Network Connection Status
If I want to see the status of a network connection - I go
to Network connections folder and right click on a
connection icon and click status to launch the Status
dialog.

Does anyone know how to do it programmatically using C++
or is there a command line?

Thanks
Suman


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ken Wickes [MSFT]  
View profile  
 More options Oct 7 2003, 6:36 pm
Newsgroups: microsoft.public.windowsxp.network_web
From: "Ken Wickes [MSFT]" <ken...@online.microsoft.com>
Date: Tue, 7 Oct 2003 15:33:47 -0700
Local: Tues, Oct 7 2003 6:33 pm
Subject: Re: Programmatically launch Network Connection Status
There are no APIs for this.  Conceivably you could drill through the shell
namespace and apply the verb, but the folder tends to change from release to
release.

--

Ken Wickes [MSFT]
This posting is provided "AS IS" with no warranties, and confers no rights.

"Suman" <sumanson...@yahoo.com> wrote in message

news:0f4901c38d1a$23361980$a001280a@phx.gbl...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Suman  
View profile  
 More options Oct 7 2003, 7:27 pm
Newsgroups: microsoft.public.windowsxp.network_web
From: "Suman" <sumanson...@yahoo.com>
Date: Tue, 7 Oct 2003 16:25:38 -0700
Local: Tues, Oct 7 2003 7:25 pm
Subject: Re: Programmatically launch Network Connection Status
Thanks Ken. I did drill through the shell namespace and I
am able to operate on all the menu items that show in the
right context menu except the Status. I can launch the
properties Dialog, do enable/disable etc. However the same
piece of code that applies the verb does not work for the
Status dialog

Code snippet:
        nVerbItemID = GetMenuItemID( hPopup, nVerbItemID );

//nVerbItemID is 9 for properties and 5 for status      

        CMINVOKECOMMANDINFO  cmi;

        ZeroMemory(&cmi, sizeof(cmi));

        cmi.cbSize = sizeof(CMINVOKECOMMANDINFO);

        cmi.lpVerb = MAKEINTRESOURCE(nVerbItemID-1);

        cmi.nShow = SW_SHOWNORMAL;                    

        hr = pcmLACContextMenu->InvokeCommand(&cmi);

Also do the Menu IDs change from release to release?

Thanks
Suman

>-----Original Message-----
>There are no APIs for this.  Conceivably you could drill
through the shell
>namespace and apply the verb, but the folder tends to

change from release to


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ken Wickes [MSFT]  
View profile  
 More options Oct 7 2003, 7:56 pm
Newsgroups: microsoft.public.windowsxp.network_web
From: "Ken Wickes [MSFT]" <ken...@online.microsoft.com>
Date: Tue, 7 Oct 2003 16:53:58 -0700
Local: Tues, Oct 7 2003 7:53 pm
Subject: Re: Programmatically launch Network Connection Status
Ah, that just jarred something loose in my memory.  There is a bug in XP and
I think a side effect of that is that you can't use the status verb unless
you are within the main explorer process.  You see the same problem if you
launch a new explorer process and try to activate the status via the UI.
Sorry bout that.

I wouldn't be surprised if the menus changed from release to release.

--

Ken Wickes [MSFT]
This posting is provided "AS IS" with no warranties, and confers no rights.

"Suman" <sumanson...@yahoo.com> wrote in message

news:24cfe01c38d2a$50df4c20$a601280a@phx.gbl...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »