[NETSHELL]
authorThomas Faber <thomas.faber@reactos.org>
Sun, 19 Apr 2015 21:14:49 +0000 (21:14 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Sun, 19 Apr 2015 21:14:49 +0000 (21:14 +0000)
- Use the correct names for netshell's CLSIDs as indicated by the registry and public symbols

svn path=/trunk/; revision=67312

reactos/dll/shellext/netshell/README
reactos/dll/shellext/netshell/classfactory.cpp
reactos/dll/shellext/netshell/connectmanager.cpp
reactos/dll/shellext/netshell/enumlist.cpp
reactos/dll/shellext/netshell/shfldr_netconnect.cpp
reactos/include/reactos/shlguid_undoc.h

index 5f7fa4a..cfdd583 100644 (file)
@@ -22,7 +22,7 @@ the actions "Status" / "Properties" are implemented.
 
 === Status Dialog & Notification Area ===
 
-The status dialog is implemented by IOleCommandTarget interface(CLSID_LanConnectStatusUI). This interface manages all status dialogs
+The status dialog is implemented by IOleCommandTarget interface(CLSID_ConnectionTray). This interface manages all status dialogs
 for all available dialogs. The interface is implemented as a singleton to advoid multiple notification icons
 appear in the Notification area of the explorer. Everytime the IShellFolder object is created (ISF_NetConnect_Constructor), 
 it creates a reference to IOleCommandTarget interface and calls its IOleCommandTarget::Exec function with CGID_ShellServiceObject.
index be14f19..1e4d5fe 100644 (file)
@@ -72,13 +72,13 @@ CNetshellClassFactory::CreateInstance(
 {
     *ppvObject = NULL;
 
-    if (IsEqualCLSID(m_clsid, CLSID_NetworkConnections))
+    if (IsEqualCLSID(m_clsid, CLSID_ConnectionFolder))
         return ISF_NetConnect_Constructor(pUnkOuter, riid, ppvObject);
     else if (IsEqualCLSID(m_clsid, CLSID_ConnectionManager))
         return INetConnectionManager_Constructor(pUnkOuter, riid, ppvObject);
-    else if (IsEqualCLSID(m_clsid, CLSID_LANConnectUI))
+    else if (IsEqualCLSID(m_clsid, CLSID_LanConnectionUi))
         return LanConnectUI_Constructor(pUnkOuter, riid, ppvObject);
-    else if (IsEqualCLSID(m_clsid, CLSID_LanConnectStatusUI))
+    else if (IsEqualCLSID(m_clsid, CLSID_ConnectionTray))
         return LanConnectStatusUI_Constructor(pUnkOuter, riid, ppvObject);
 
     return E_NOINTERFACE;
index 7bf1cf6..1376c24 100644 (file)
@@ -321,7 +321,7 @@ CNetConnection::GetUiObjectClassId(CLSID *pclsid)
 {
     if (m_Props.MediaType == NCM_LAN)
     {
-        CopyMemory(pclsid, &CLSID_LANConnectUI, sizeof(CLSID));
+        CopyMemory(pclsid, &CLSID_LanConnectionUi, sizeof(CLSID));
         return S_OK;
     }
 
index 6a655ff..fa1f479 100644 (file)
@@ -207,7 +207,7 @@ PITEMID_CHILD _ILCreateNetConnect()
     {
         LPPIDLDATA pData = _ILGetDataPointer(pidlOut);
 
-        memcpy(&(pData->u.guid.guid), &CLSID_NetworkConnections, sizeof(GUID));
+        memcpy(&(pData->u.guid.guid), &CLSID_ConnectionFolder, sizeof(GUID));
     }
     return pidlOut;
 }
@@ -231,7 +231,7 @@ BOOL _ILIsNetConnect(LPCITEMIDLIST pidl)
     const IID *piid = _ILGetGUIDPointer(const_cast<LPITEMIDLIST>(pidl));
 
     if (piid)
-        return IsEqualIID(*piid, CLSID_NetworkConnections);
+        return IsEqualIID(*piid, CLSID_ConnectionFolder);
 
     return FALSE;
 }
index 12db371..4710fb5 100644 (file)
@@ -144,7 +144,7 @@ CNetworkConnections::CNetworkConnections() :
     m_pidlRoot(_ILCreateNetConnect())
 {
     HRESULT hr;
-    hr = CoCreateInstance(CLSID_LanConnectStatusUI, NULL, CLSCTX_INPROC_SERVER, IID_IOleCommandTarget, reinterpret_cast<PVOID*>(&m_lpOleCmd));
+    hr = CoCreateInstance(CLSID_ConnectionTray, NULL, CLSCTX_INPROC_SERVER, IID_IOleCommandTarget, reinterpret_cast<PVOID*>(&m_lpOleCmd));
     if (FAILED(hr))
     {
         ERR("CoCreateInstance failed with %lx\n", hr);
@@ -1115,7 +1115,7 @@ HRESULT WINAPI CNetworkConnections::GetClassID(CLSID *lpClassId)
     if (!lpClassId)
         return E_POINTER;
 
-    *lpClassId = CLSID_NetworkConnections;
+    *lpClassId = CLSID_ConnectionFolder;
 
     return S_OK;
 }
index bd32904..79968e8 100644 (file)
@@ -114,17 +114,25 @@ DEFINE_GUID(IID_IAugmentedShellFolder3,    0x4F755EA8, 0x247D, 0x479B, 0x91, 0x8
 
 DEFINE_GUID(CGID_MenuDeskBar,              0x5C9F0A12, 0x959E, 0x11D0, 0xA3, 0xA4, 0x00, 0xA0, 0xC9, 0x08, 0x26, 0x36);
 
-DEFINE_GUID(CLSID_LANConnectUI,            0x7007ACC5, 0x3202, 0x11D1, 0xAA, 0xD2, 0x00, 0x80, 0x5F, 0xC1, 0x27, 0x0E);
-DEFINE_GUID(CLSID_NetworkConnections,      0x7007ACC7, 0x3202, 0x11D1, 0xAA, 0xD2, 0x00, 0x80, 0x5F, 0xC1, 0x27, 0x0E);
-DEFINE_GUID(CLSID_LanConnectStatusUI,      0x7007ACCF, 0x3202, 0x11D1, 0xAA, 0xD2, 0x00, 0x80, 0x5F, 0xC1, 0x27, 0x0E);
+DEFINE_GUID(CLSID_DialupConnectionUi,      0x7007ACC1, 0x3202, 0x11D1, 0xAA, 0xD2, 0x00, 0x80, 0x5F, 0xC1, 0x27, 0x0E);
+DEFINE_GUID(CLSID_DirectConnectionUi,      0x7007ACC2, 0x3202, 0x11D1, 0xAA, 0xD2, 0x00, 0x80, 0x5F, 0xC1, 0x27, 0x0E);
+DEFINE_GUID(CLSID_InboundConnectionUi,     0x7007ACC3, 0x3202, 0x11D1, 0xAA, 0xD2, 0x00, 0x80, 0x5F, 0xC1, 0x27, 0x0E);
+DEFINE_GUID(CLSID_InternetConnectionUi,    0x7007ACC4, 0x3202, 0x11D1, 0xAA, 0xD2, 0x00, 0x80, 0x5F, 0xC1, 0x27, 0x0E);
+DEFINE_GUID(CLSID_LanConnectionUi,         0x7007ACC5, 0x3202, 0x11D1, 0xAA, 0xD2, 0x00, 0x80, 0x5F, 0xC1, 0x27, 0x0E);
+DEFINE_GUID(CLSID_VpnConnectionUi,         0x7007ACC6, 0x3202, 0x11D1, 0xAA, 0xD2, 0x00, 0x80, 0x5F, 0xC1, 0x27, 0x0E);
+DEFINE_GUID(CLSID_ConnectionFolder,        0x7007ACC7, 0x3202, 0x11D1, 0xAA, 0xD2, 0x00, 0x80, 0x5F, 0xC1, 0x27, 0x0E);
+DEFINE_GUID(CLSID_ConnectionFolderEnum,    0x7007ACC8, 0x3202, 0x11D1, 0xAA, 0xD2, 0x00, 0x80, 0x5F, 0xC1, 0x27, 0x0E);
+DEFINE_GUID(CLSID_ConnectionTray,          0x7007ACCF, 0x3202, 0x11D1, 0xAA, 0xD2, 0x00, 0x80, 0x5F, 0xC1, 0x27, 0x0E);
+DEFINE_GUID(CLSID_ConnectionCommonUi,      0x7007ACD1, 0x3202, 0x11D1, 0xAA, 0xD2, 0x00, 0x80, 0x5F, 0xC1, 0x27, 0x0E);
+DEFINE_GUID(CLSID_NetConnectionUiUtilities,0x7007ACD3, 0x3202, 0x11D1, 0xAA, 0xD2, 0x00, 0x80, 0x5F, 0xC1, 0x27, 0x0E);
+DEFINE_GUID(CLSID_PPPoEUi,                 0x7007ACD4, 0x3202, 0x11D1, 0xAA, 0xD2, 0x00, 0x80, 0x5F, 0xC1, 0x27, 0x0E);
+DEFINE_GUID(CLSID_SharedAccessConnectionUi,0x7007ACD5, 0x3202, 0x11D1, 0xAA, 0xD2, 0x00, 0x80, 0x5F, 0xC1, 0x27, 0x0E);
 
 DEFINE_GUID(CLSID_SysTray,                 0x35CEC8A3, 0x2BE6, 0x11D2, 0x87, 0x73, 0x92, 0xE2, 0x20, 0x52, 0x41, 0x53);
 
 DEFINE_GUID(CLSID_BackgroundTaskScheduler, 0x603D3800, 0xBD81, 0x11d0, 0xA3, 0xA5, 0x00, 0xC0, 0x4F, 0xD7, 0x06, 0xEC);
 DEFINE_GUID(CLSID_SharedTaskScheduler,     0x603D3801, 0xBD81, 0x11d0, 0xA3, 0xA5, 0x00, 0xC0, 0x4F, 0xD7, 0x06, 0xEC);
 
-#define CLSID_ConnectionTray CLSID_LanConnectStatusUI
-
 #define CGID_IExplorerToolbar IID_IExplorerToolbar
 #define SID_IExplorerToolbar IID_IExplorerToolbar
 #define SID_ITargetFrame2 IID_ITargetFrame2