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
release.
--
Ken Wickes [MSFT]
This posting is provided "AS IS" with no warranties, and confers no rights.
Suman said:
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
.