Google 그룹스는 더 이상 새로운 유즈넷 게시물 또는 구독을 지원하지 않습니다. 과거의 콘텐츠는 계속 볼 수 있습니다.

Programmatically launch Network Connection Status

조회수 19회
읽지 않은 첫 메시지로 건너뛰기

Suman

읽지 않음,
2003. 10. 7. 오후 5:29:4903. 10. 7.
받는사람
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

Ken Wickes [MSFT]

읽지 않음,
2003. 10. 7. 오후 6:33:4703. 10. 7.
받는사람
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" <suman...@yahoo.com> wrote in message
news:0f4901c38d1a$23361980$a001...@phx.gbl...

Suman

읽지 않음,
2003. 10. 7. 오후 7:25:3803. 10. 7.
받는사람
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

>.
>

Ken Wickes [MSFT]

읽지 않음,
2003. 10. 7. 오후 7:53:5803. 10. 7.
받는사람
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" <suman...@yahoo.com> wrote in message

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

새 메시지 0개