For Programmers: Free Programming Magazines  


Home > Archive > VC Language > November 2005 > How do I disp. "Local Area Connection Status" dialog programmatica









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author How do I disp. "Local Area Connection Status" dialog programmatica
Dkds.Naidu

2005-11-21, 7:58 am

Hi,

I have to display "Local Area Connection Status" dialog through Win32
application. Manually, double click on "Local Area Connection" tray icon in
the tray or START -> SETTINGS ->NETWORK CONNECTIONS ->Local Area Connection.

I have tested with WINSPY.EXE tool, the class name of this window is #32770.
So,I confirmed it's dialog box.


How do I display this window/dialog box?????

Thanks in advance.

Regards,
--
DKDS.Naidu.
Doug Harrison [MVP]

2005-11-21, 7:04 pm

On Mon, 21 Nov 2005 04:25:06 -0800, "Dkds.Naidu" <dkdsnaidu819@yahoo.co.in>
wrote:

>Hi,
>
> I have to display "Local Area Connection Status" dialog through Win32
>application. Manually, double click on "Local Area Connection" tray icon in
>the tray or START -> SETTINGS ->NETWORK CONNECTIONS ->Local Area Connection.
>
>I have tested with WINSPY.EXE tool, the class name of this window is #32770.
>So,I confirmed it's dialog box.
>
>
>How do I display this window/dialog box?????


AFAIK, you can't, because the Explorer process is more equal than the rest
of us. MSFT has confirmed this is a shell bug:

http://groups.google.com/group/micr...96b8089d334437c
<q>
From: "Ken Wickes [MSFT]" <kenwic@online.microsoft.com>
Subject: Re: Programmatically launch Network Connection Status
Date: Tue, 7 Oct 2003 16:53:58 -0700
Newsgroups: microsoft.public.windowsxp.network_web

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.
</q>

I just tried this again using the program I wrote called "runmenu", and it
still can't invoke that particular dialog. You can list the available
commands like this:

C>runmenu /list "<NetworkConnections>\Local Area Connection"
Disable
Status
Repair
Bridge Connections
Create Shortcut
Rename
Properties

You can invoke the "Properties" command with:

C>runmenu /exec:properties /wait:window "<NetworkConnections>\Local Area
Connection"

But this does not work for the "Status" command, apparently for the reason
Wickes gave. Unfortunately, I don't have a workaround, though I guess you
might try injecting yourself into Explorer somehow, maybe through a shell
extension. For more on runmenu (it's free), see:

http://www.eluent.com/freeware.htm

--
Doug Harrison
Visual C++ MVP
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com