2013-07-07 09:10:31 +00:00
|
|
|
/*
|
|
|
|
* PROJECT: ReactOS api tests
|
|
|
|
* LICENSE: GPLv2+ - See COPYING in the top level directory
|
|
|
|
* PURPOSE: COM interface test for shell32 classes
|
2013-10-12 16:05:54 +00:00
|
|
|
* PROGRAMMER: Thomas Faber <thomas.faber@reactos.org>
|
2013-07-07 09:10:31 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include "com_apitest.h"
|
|
|
|
|
|
|
|
#define NDEBUG
|
|
|
|
#include <debug.h>
|
|
|
|
|
|
|
|
static const CLASS_AND_INTERFACES ExpectedInterfaces[] =
|
|
|
|
{
|
2018-12-09 14:58:35 +00:00
|
|
|
{
|
|
|
|
ID_NAME(CLSID_ActiveDesktop),
|
|
|
|
{
|
|
|
|
{ 0x0, &IID_IActiveDesktop },
|
|
|
|
{ 0x0, &IID_IUnknown },
|
|
|
|
{ 0x4, &IID_IActiveDesktopP },
|
|
|
|
{ 0x8, &IID_IADesktopP2 },
|
|
|
|
{ 0xc, &IID_IPropertyBag },
|
|
|
|
}
|
|
|
|
},
|
2015-02-25 15:00:24 +00:00
|
|
|
{
|
|
|
|
ID_NAME(CLSID_CDBurn),
|
|
|
|
{
|
|
|
|
{ 0x0, &IID_IObjectWithSite },
|
|
|
|
{ 0x0, &IID_IUnknown },
|
|
|
|
{ 0x8, &IID_IShellExtInit },
|
|
|
|
{ 0xc, &IID_IContextMenu },
|
|
|
|
{ 0x10, &IID_IShellPropSheetExt },
|
2016-04-09 15:13:01 +00:00
|
|
|
{ 0x14, &IID_IDiscMasterProgressEvents },
|
2015-02-25 15:00:24 +00:00
|
|
|
{ 0x18, &IID_IDropTarget },
|
|
|
|
{ 0x1c, &IID_IPersistFile },
|
|
|
|
{ 0x20, &IID_IOleCommandTarget },
|
|
|
|
{ 0x24, &IID_ICDBurn },
|
2016-04-09 15:13:01 +00:00
|
|
|
{ 0x28, &IID_ICDBurnPriv },
|
2015-02-25 15:00:24 +00:00
|
|
|
{ 0x2c, &IID_IPersistPropertyBag },
|
2018-03-02 13:14:53 +00:00
|
|
|
{ 0x30, &IID_IDriveFolderExtOld },
|
2016-04-09 08:49:17 +00:00
|
|
|
{ 0x34, &IID_INamespaceWalkCB },
|
2015-02-25 15:00:24 +00:00
|
|
|
{ 0x3c, &IID_IServiceProvider },
|
2016-04-09 15:13:01 +00:00
|
|
|
{ 0x40, &IID_ITransferAdviseSinkPriv },
|
|
|
|
{ 0x44, &IID_IQueryCancelAutoPlay },
|
2015-02-25 15:00:24 +00:00
|
|
|
}
|
|
|
|
},
|
2015-02-14 12:59:16 +00:00
|
|
|
{
|
|
|
|
ID_NAME(CLSID_ControlPanel),
|
|
|
|
{
|
|
|
|
{ 0x0, &IID_IUnknown },
|
|
|
|
{ 0x10, &IID_IPersistFolder2 },
|
|
|
|
{ 0x10, &IID_IPersistFolder },
|
|
|
|
{ 0x10, &IID_IPersist },
|
2015-02-25 16:22:26 +00:00
|
|
|
{ FARAWY, &IID_IShellIconOverlay },
|
2015-02-24 12:52:18 +00:00
|
|
|
{ FARAWY, &IID_IShellFolder2 },
|
|
|
|
{ FARAWY, &IID_IShellFolder },
|
2015-02-14 12:59:16 +00:00
|
|
|
}
|
|
|
|
},
|
2013-07-07 09:10:31 +00:00
|
|
|
{
|
|
|
|
ID_NAME(CLSID_CopyToMenu),
|
|
|
|
{
|
|
|
|
{ 0x0, &IID_IContextMenu3 },
|
|
|
|
{ 0x0, &IID_IContextMenu2 },
|
|
|
|
{ 0x0, &IID_IContextMenu },
|
|
|
|
{ 0x0, &IID_IUnknown },
|
2013-07-13 08:07:42 +00:00
|
|
|
{ 0x4, &IID_IShellExtInit },
|
2013-07-07 09:10:31 +00:00
|
|
|
{ 0x8, &IID_IObjectWithSite },
|
2013-07-13 08:07:42 +00:00
|
|
|
{ 0x10, &IID_IFolderFilter },
|
2013-07-07 09:10:31 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
ID_NAME(CLSID_DeskMovr),
|
|
|
|
{
|
|
|
|
{ 0x0, &IID_IUnknown },
|
2013-07-13 08:07:42 +00:00
|
|
|
{ 0x70, &IID_IDeskMovr },
|
2013-07-07 09:10:31 +00:00
|
|
|
{ 0x74, &IID_IOleObject },
|
|
|
|
{ 0x78, &IID_IPersistPropertyBag },
|
2016-04-09 14:05:08 +00:00
|
|
|
{ 0x7c, &IID_IOleControl },
|
2013-07-07 09:10:31 +00:00
|
|
|
{ 0x80, &IID_IOleInPlaceActiveObject },
|
2013-07-13 08:07:42 +00:00
|
|
|
{ 0x84, &IID_IViewObjectEx },
|
|
|
|
{ 0x84, &IID_IViewObject2 },
|
|
|
|
{ 0x84, &IID_IViewObject },
|
2013-07-07 09:10:31 +00:00
|
|
|
{ 0x88, &IID_IOleWindow },
|
|
|
|
{ 0x88, &IID_IOleInPlaceObject },
|
|
|
|
{ 0x88, &IID_IOleInPlaceObjectWindowless },
|
2016-04-09 14:05:08 +00:00
|
|
|
{ 0x8c, &IID_IQuickActivate },
|
2013-07-07 09:10:31 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
ID_NAME(CLSID_DragDropHelper),
|
|
|
|
{
|
|
|
|
{ 0x0, &IID_IDragSourceHelper },
|
|
|
|
{ 0x0, &IID_IUnknown },
|
|
|
|
{ 0x4, &IID_IDropTargetHelper },
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
ID_NAME(CLSID_FadeTask),
|
|
|
|
{
|
|
|
|
{ 0x0, &IID_IUnknown },
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
ID_NAME(CLSID_FileSearchBand),
|
|
|
|
{
|
|
|
|
{ 0x0, &IID_IFileSearchBand },
|
|
|
|
{ 0x0, &IID_IDispatch },
|
|
|
|
{ 0x0, &IID_IUnknown },
|
|
|
|
{ 0x4, &IID_IObjectWithSite },
|
|
|
|
{ 0x8, &IID_IPersistStream },
|
|
|
|
{ 0x8, &IID_IPersist },
|
|
|
|
{ 0xc, &IID_IDeskBand },
|
|
|
|
{ 0xc, &IID_IDockingWindow },
|
|
|
|
{ 0xc, &IID_IOleWindow },
|
|
|
|
{ 0x10, &IID_IInputObject },
|
2016-04-09 14:05:08 +00:00
|
|
|
{ 0x14, &IID_IOleClientSite },
|
2013-07-07 09:10:31 +00:00
|
|
|
{ 0x18, &IID_IOleInPlaceSite },
|
2016-04-09 14:05:08 +00:00
|
|
|
{ 0x1c, &IID_IOleControlSite },
|
2013-07-07 09:10:31 +00:00
|
|
|
}
|
|
|
|
},
|
2019-08-30 23:10:33 +00:00
|
|
|
{
|
|
|
|
ID_NAME(CLSID_FindFolder),
|
|
|
|
{
|
|
|
|
{ 0x0, &IID_IShellFolder2 },
|
|
|
|
{ 0x0, &IID_IShellFolder },
|
|
|
|
{ 0x0, &IID_IUnknown },
|
|
|
|
{ 0x4, &IID_IShellIcon },
|
|
|
|
{ 0x8, &IID_IShellIconOverlay },
|
|
|
|
{ 0xc, &IID_IPersistFolder2 },
|
|
|
|
{ 0xc, &IID_IPersistFolder },
|
|
|
|
{ 0xc, &IID_IPersist },
|
|
|
|
}
|
|
|
|
},
|
2013-07-07 09:10:31 +00:00
|
|
|
{
|
|
|
|
ID_NAME(CLSID_FolderItem),
|
|
|
|
{
|
|
|
|
//{ 0x0, &CLSID_ShellFolderItem }, // broken QueryInterface that doesn't add a reference
|
|
|
|
{ 0x0, &IID_FolderItem2 },
|
|
|
|
{ 0x0, &IID_FolderItem },
|
|
|
|
{ 0x0, &IID_IDispatch },
|
|
|
|
{ 0x0, &IID_IUnknown },
|
|
|
|
{ 0x4, &IID_IPersistFolder2 },
|
|
|
|
{ 0x4, &IID_IPersistFolder },
|
|
|
|
{ 0x4, &IID_IPersist },
|
|
|
|
{ 0x8, &IID_IObjectSafety },
|
2016-04-09 14:05:08 +00:00
|
|
|
{ 0x10, &IID_IParentAndItem },
|
2013-07-07 09:10:31 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
ID_NAME(CLSID_FolderItemsFDF),
|
|
|
|
{
|
|
|
|
{ 0x0, &IID_FolderItems3 },
|
|
|
|
//{ 0x0, &IID_FolderItems2 }, ????
|
|
|
|
{ 0x0, &IID_FolderItems },
|
|
|
|
{ 0x0, &IID_IDispatch },
|
|
|
|
{ 0x0, &IID_IUnknown },
|
|
|
|
{ 0x4, &IID_IPersistFolder },
|
|
|
|
{ 0x8, &IID_IObjectSafety },
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
ID_NAME(CLSID_FolderShortcut),
|
|
|
|
{
|
|
|
|
{ 0x0, &IID_IShellFolder2 },
|
|
|
|
{ 0x0, &IID_IShellFolder },
|
|
|
|
{ 0x0, &IID_IUnknown },
|
|
|
|
{ 0x4, &IID_IPersistFolder3 },
|
|
|
|
{ 0x4, &IID_IPersistFolder2 },
|
|
|
|
{ 0x4, &IID_IPersistFolder },
|
|
|
|
{ 0x4, &IID_IPersist },
|
|
|
|
{ 0x8, &IID_IShellLinkA },
|
|
|
|
{ 0xc, &IID_IShellLinkW },
|
|
|
|
{ 0x10, &IID_IPersistFile },
|
|
|
|
{ 0x14, &IID_IExtractIconW },
|
|
|
|
{ 0x18, &IID_IQueryInfo },
|
|
|
|
{ 0x20, &IID_IPersistStream },
|
|
|
|
{ 0x20, &IID_IPersistStreamInit },
|
|
|
|
{ 0x24, &IID_IPersistPropertyBag },
|
2013-07-13 08:07:42 +00:00
|
|
|
{ 0x28, &IID_IBrowserFrameOptions },
|
2013-07-07 09:10:31 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
ID_NAME(CLSID_FolderViewHost),
|
|
|
|
{
|
2015-02-25 15:00:24 +00:00
|
|
|
{ 0x0, &IID_IFolderViewHost },
|
|
|
|
{ 0x0, &IID_IUnknown },
|
2013-07-07 09:10:31 +00:00
|
|
|
{ 0x4, &IID_IServiceProvider },
|
|
|
|
{ 0x8, &IID_IOleWindow },
|
|
|
|
{ 0xc, &IID_IFolderView },
|
|
|
|
{ 0x10, &IID_IObjectWithSite },
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
ID_NAME(CLSID_ISFBand),
|
|
|
|
{
|
|
|
|
{ -0xac, &IID_IDeskBand },
|
|
|
|
{ -0xac, &IID_IDockingWindow },
|
|
|
|
{ -0xac, &IID_IOleWindow },
|
|
|
|
{ -0xa8, &IID_IObjectWithSite },
|
|
|
|
{ -0xa0, &IID_IInputObject },
|
|
|
|
{ -0x9c, &IID_IPersistStream },
|
|
|
|
{ -0x9c, &IID_IPersist },
|
|
|
|
{ -0x98, &IID_IOleCommandTarget },
|
|
|
|
{ -0x94, &IID_IServiceProvider },
|
|
|
|
{ -0x78, &IID_IWinEventHandler },
|
|
|
|
{ -0x74, &IID_IShellChangeNotify },
|
|
|
|
{ -0x70, &IID_IDropTarget },
|
|
|
|
{ -0x4, &IID_IContextMenu },
|
|
|
|
{ 0x0, &IID_IShellFolderBand },
|
|
|
|
{ 0x0, &IID_IUnknown },
|
|
|
|
{ 0x94, &IID_IFolderBandPriv },
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
ID_NAME(CLSID_MenuBand),
|
|
|
|
{
|
|
|
|
{ -0x30, &IID_IDeskBand },
|
|
|
|
{ -0x30, &IID_IDockingWindow },
|
|
|
|
{ -0x30, &IID_IOleWindow },
|
|
|
|
{ -0x2c, &IID_IObjectWithSite },
|
|
|
|
{ -0x24, &IID_IInputObject },
|
|
|
|
{ -0x20, &IID_IPersistStream },
|
|
|
|
{ -0x20, &IID_IPersist },
|
|
|
|
{ -0x1c, &IID_IOleCommandTarget },
|
|
|
|
{ -0x18, &IID_IServiceProvider },
|
|
|
|
{ 0x0, &IID_IMenuPopup },
|
|
|
|
{ 0x0, &IID_IDeskBar },
|
|
|
|
{ 0x0, &IID_IUnknown },
|
|
|
|
{ 0x4, &IID_IMenuBand },
|
|
|
|
{ 0x8, &IID_IShellMenu2 },
|
|
|
|
{ 0x8, &IID_IShellMenu },
|
|
|
|
{ 0xc, &IID_IWinEventHandler },
|
|
|
|
{ 0x10, &IID_IShellMenuAcc },
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
ID_NAME(CLSID_MenuBandSite),
|
|
|
|
{
|
|
|
|
{ 0x0, &IID_IBandSite },
|
|
|
|
{ 0x0, &IID_IUnknown },
|
|
|
|
{ 0x4, &IID_IDeskBarClient },
|
|
|
|
{ 0x4, &IID_IOleWindow },
|
|
|
|
{ 0x8, &IID_IOleCommandTarget },
|
|
|
|
{ 0xc, &IID_IInputObject },
|
|
|
|
{ 0x10, &IID_IInputObjectSite },
|
|
|
|
{ 0x14, &IID_IWinEventHandler },
|
|
|
|
{ 0x18, &IID_IServiceProvider },
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
ID_NAME(CLSID_MenuDeskBar),
|
|
|
|
{
|
|
|
|
{ -0x48, &IID_IOleCommandTarget },
|
|
|
|
{ -0x44, &IID_IServiceProvider },
|
|
|
|
{ -0x40, &IID_IDeskBar },
|
|
|
|
{ -0x40, &IID_IOleWindow },
|
|
|
|
{ -0x3c, &IID_IInputObjectSite },
|
|
|
|
{ -0x38, &IID_IInputObject },
|
|
|
|
{ 0x0, &IID_IMenuPopup },
|
|
|
|
{ 0x0, &IID_IUnknown },
|
|
|
|
{ 0x4, &IID_IObjectWithSite },
|
|
|
|
{ 0x8, &IID_IBanneredBar },
|
|
|
|
{ 0xc, &IID_IInitializeObject },
|
|
|
|
}
|
|
|
|
},
|
|
|
|
#if 0 // This is registered to shell32, but can't be instanciated
|
|
|
|
{
|
|
|
|
ID_NAME(CLSID_MenuToolbarBase),
|
|
|
|
{
|
|
|
|
{ 0x0, &IID_IUnknown },
|
|
|
|
}
|
|
|
|
},
|
|
|
|
#endif
|
2014-03-21 11:23:47 +00:00
|
|
|
{
|
|
|
|
ID_NAME(CLSID_MergedFolder),
|
|
|
|
{
|
|
|
|
{ -0x8, &IID_IShellFolder2 },
|
|
|
|
{ -0x4, &IID_IStorage },
|
|
|
|
{ 0x0, &IID_IAugmentedShellFolder2 },
|
|
|
|
{ 0x0, &IID_IAugmentedShellFolder },
|
|
|
|
{ 0x0, &IID_IShellFolder },
|
|
|
|
{ 0x0, &IID_IUnknown },
|
|
|
|
{ 0x4, &IID_IShellService },
|
2015-02-24 12:52:18 +00:00
|
|
|
{ 0x8, &IID_ITranslateShellChangeNotify },
|
2014-03-21 11:23:47 +00:00
|
|
|
{ 0xc, &IID_IPersistFolder2 },
|
|
|
|
{ 0xc, &IID_IPersistFolder },
|
|
|
|
{ 0xc, &IID_IPersist },
|
|
|
|
{ 0x10, &IID_IPersistPropertyBag },
|
2015-02-25 16:22:26 +00:00
|
|
|
{ 0x14, &IID_IShellIconOverlay },
|
2016-04-09 14:05:08 +00:00
|
|
|
{ 0x18, &IID_ICompositeFolder },
|
|
|
|
{ 0x1c, &IID_IItemNameLimits },
|
2014-03-21 11:23:47 +00:00
|
|
|
}
|
|
|
|
},
|
2013-07-07 09:10:31 +00:00
|
|
|
{
|
|
|
|
ID_NAME(CLSID_MoveToMenu),
|
|
|
|
{
|
|
|
|
{ 0x0, &IID_IContextMenu3 },
|
|
|
|
{ 0x0, &IID_IContextMenu2 },
|
|
|
|
{ 0x0, &IID_IContextMenu },
|
|
|
|
{ 0x0, &IID_IUnknown },
|
2013-07-13 08:07:42 +00:00
|
|
|
{ 0x4, &IID_IShellExtInit },
|
2013-07-07 09:10:31 +00:00
|
|
|
{ 0x8, &IID_IObjectWithSite },
|
2013-07-13 08:07:42 +00:00
|
|
|
{ 0x10, &IID_IFolderFilter },
|
2013-07-07 09:10:31 +00:00
|
|
|
}
|
|
|
|
},
|
2015-02-14 12:59:16 +00:00
|
|
|
{
|
|
|
|
ID_NAME(CLSID_MyComputer),
|
|
|
|
{
|
|
|
|
{ 0x0, &IID_IUnknown },
|
|
|
|
{ 0x10, &IID_IPersistFolder2 },
|
|
|
|
{ 0x10, &IID_IPersistFolder },
|
|
|
|
{ 0x10, &IID_IPersist },
|
2015-04-19 21:28:09 +00:00
|
|
|
{ 0x10, &IID_IPersistFreeThreadedObject },
|
2015-02-25 16:22:26 +00:00
|
|
|
{ FARAWY, &IID_IShellIconOverlay },
|
2015-02-24 12:52:18 +00:00
|
|
|
{ FARAWY, &IID_IShellFolder2 },
|
|
|
|
{ FARAWY, &IID_IShellFolder },
|
2015-02-14 12:59:16 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
ID_NAME(CLSID_MyDocuments),
|
|
|
|
{
|
|
|
|
{ -0x4, &IID_IPersistFolder },
|
|
|
|
{ -0x4, &IID_IPersist },
|
|
|
|
{ 0x0, &IID_IShellFolder2 },
|
|
|
|
{ 0x0, &IID_IShellFolder },
|
|
|
|
{ 0x0, &IID_IUnknown },
|
2015-02-25 16:22:26 +00:00
|
|
|
{ 0x4, &IID_IShellIconOverlay },
|
2015-02-24 12:52:18 +00:00
|
|
|
{ FARAWY, &IID_IShellIcon },
|
|
|
|
{ FARAWY, &IID_IPersistFolder3 },
|
|
|
|
{ FARAWY, &IID_IPersistFolder2 },
|
|
|
|
{ FARAWY, &IID_IStorage },
|
|
|
|
{ FARAWY, &IID_IContextMenuCB },
|
|
|
|
{ FARAWY, &IID_IOleCommandTarget },
|
2016-04-09 14:05:08 +00:00
|
|
|
{ FARAWY, &IID_IItemNameLimits },
|
|
|
|
{ FARAWY, &IID_IPropertySetStorage },
|
2015-02-14 12:59:16 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
ID_NAME(CLSID_NetworkPlaces),
|
|
|
|
{
|
|
|
|
{ 0x0, &IID_IUnknown },
|
|
|
|
{ 0x10, &IID_IPersistFolder3 },
|
|
|
|
{ 0x10, &IID_IPersistFolder2 },
|
|
|
|
{ 0x10, &IID_IPersistFolder },
|
|
|
|
{ 0x10, &IID_IPersist },
|
2015-04-19 21:28:09 +00:00
|
|
|
{ 0x10, &IID_IPersistFreeThreadedObject },
|
2015-02-25 16:22:26 +00:00
|
|
|
{ FARAWY, &IID_IShellIconOverlay },
|
2015-02-24 12:52:18 +00:00
|
|
|
{ FARAWY, &IID_IShellFolder2 },
|
|
|
|
{ FARAWY, &IID_IShellFolder },
|
2015-02-14 12:59:16 +00:00
|
|
|
}
|
|
|
|
},
|
2013-07-07 09:10:31 +00:00
|
|
|
{
|
|
|
|
ID_NAME(CLSID_NewMenu),
|
|
|
|
{
|
|
|
|
{ -0xc, &IID_IObjectWithSite },
|
|
|
|
{ -0x4, &IID_IContextMenu3 },
|
|
|
|
{ -0x4, &IID_IContextMenu2 },
|
|
|
|
{ -0x4, &IID_IContextMenu },
|
2013-07-13 08:07:42 +00:00
|
|
|
{ 0x0, &IID_IShellExtInit },
|
|
|
|
{ 0x0, &IID_IUnknown },
|
2013-07-07 09:10:31 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
ID_NAME(CLSID_PersonalStartMenu),
|
|
|
|
{
|
|
|
|
{ -0x30, &IID_IDeskBand },
|
|
|
|
{ -0x30, &IID_IDockingWindow },
|
|
|
|
{ -0x30, &IID_IOleWindow },
|
|
|
|
{ -0x2c, &IID_IObjectWithSite },
|
|
|
|
{ -0x24, &IID_IInputObject },
|
|
|
|
{ -0x20, &IID_IPersistStream },
|
|
|
|
{ -0x20, &IID_IPersist },
|
|
|
|
{ -0x1c, &IID_IOleCommandTarget },
|
|
|
|
{ -0x18, &IID_IServiceProvider },
|
|
|
|
{ 0x0, &IID_IMenuPopup },
|
|
|
|
{ 0x0, &IID_IDeskBar },
|
|
|
|
{ 0x0, &IID_IUnknown },
|
|
|
|
{ 0x4, &IID_IMenuBand },
|
|
|
|
{ 0x8, &IID_IShellMenu2 },
|
|
|
|
{ 0x8, &IID_IShellMenu },
|
|
|
|
{ 0xc, &IID_IWinEventHandler },
|
|
|
|
{ 0x10, &IID_IShellMenuAcc },
|
|
|
|
}
|
|
|
|
},
|
2015-02-14 12:59:16 +00:00
|
|
|
{
|
|
|
|
ID_NAME(CLSID_Printers),
|
|
|
|
{
|
2015-02-25 16:22:26 +00:00
|
|
|
{ -0xc, &IID_IRemoteComputer },
|
2016-11-06 18:04:58 +00:00
|
|
|
{ -0x4, &IID_IFolderNotify },
|
2015-02-14 12:59:16 +00:00
|
|
|
{ 0x0, &IID_IShellFolder2 },
|
|
|
|
{ 0x0, &IID_IShellFolder },
|
|
|
|
{ 0x0, &IID_IUnknown },
|
|
|
|
{ 0x4, &IID_IPersistFolder2 },
|
|
|
|
{ 0x4, &IID_IPersistFolder },
|
|
|
|
{ 0x4, &IID_IPersist },
|
|
|
|
{ 0x8, &IID_IContextMenuCB },
|
2015-02-25 16:22:26 +00:00
|
|
|
{ 0xc, &IID_IShellIconOverlay },
|
2015-02-14 12:59:16 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
ID_NAME(CLSID_QueryAssociations),
|
|
|
|
{
|
2016-11-06 18:04:58 +00:00
|
|
|
{ 0x0, &IID_IAssociationArrayOld },
|
|
|
|
{ 0x0, &IID_IUnknown },
|
|
|
|
{ 0x4, &IID_IAssociationArrayInitialize },
|
2015-02-14 12:59:16 +00:00
|
|
|
{ 0x8, &IID_IQueryAssociations },
|
|
|
|
}
|
|
|
|
},
|
2013-07-07 09:10:31 +00:00
|
|
|
{
|
|
|
|
ID_NAME(CLSID_QuickLinks),
|
|
|
|
{
|
|
|
|
{ -0xac, &IID_IDeskBand },
|
|
|
|
{ -0xac, &IID_IDockingWindow },
|
|
|
|
{ -0xac, &IID_IOleWindow },
|
|
|
|
{ -0xa8, &IID_IObjectWithSite },
|
|
|
|
{ -0xa0, &IID_IInputObject },
|
|
|
|
{ -0x9c, &IID_IPersistStream },
|
|
|
|
{ -0x9c, &IID_IPersist },
|
|
|
|
{ -0x98, &IID_IOleCommandTarget },
|
|
|
|
{ -0x94, &IID_IServiceProvider },
|
|
|
|
{ -0x78, &IID_IWinEventHandler },
|
|
|
|
{ -0x74, &IID_IShellChangeNotify },
|
|
|
|
{ -0x70, &IID_IDropTarget },
|
|
|
|
{ -0x4, &IID_IContextMenu },
|
|
|
|
{ 0x0, &IID_IShellFolderBand },
|
|
|
|
{ 0x0, &IID_IUnknown },
|
|
|
|
{ 0x94, &IID_IFolderBandPriv },
|
|
|
|
}
|
|
|
|
},
|
2015-02-14 12:59:16 +00:00
|
|
|
{
|
|
|
|
ID_NAME(CLSID_RecycleBin),
|
|
|
|
{
|
|
|
|
{ 0x0, &IID_IPersistFolder2 },
|
|
|
|
{ 0x0, &IID_IPersistFolder },
|
|
|
|
//{ 0x0, &IID_IPersist },
|
|
|
|
{ 0x0, &IID_IUnknown },
|
|
|
|
{ 0x4, &IID_IShellFolder2 },
|
|
|
|
{ 0x4, &IID_IShellFolder },
|
|
|
|
{ 0x8, &IID_IContextMenu },
|
|
|
|
{ 0xc, &IID_IShellPropSheetExt },
|
|
|
|
{ 0x10, &IID_IShellExtInit },
|
|
|
|
}
|
|
|
|
},
|
2013-07-07 09:10:31 +00:00
|
|
|
{
|
|
|
|
ID_NAME(CLSID_SendToMenu),
|
|
|
|
{
|
|
|
|
{ -0x4, &IID_IContextMenu3 },
|
|
|
|
{ -0x4, &IID_IContextMenu2 },
|
|
|
|
{ -0x4, &IID_IContextMenu },
|
2013-07-13 08:07:42 +00:00
|
|
|
{ 0x0, &IID_IShellExtInit },
|
|
|
|
{ 0x0, &IID_IUnknown },
|
2013-07-07 09:10:31 +00:00
|
|
|
{ 0x4, &IID_IOleWindow },
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
ID_NAME(CLSID_Shell),
|
|
|
|
{
|
|
|
|
{ 0x0, &IID_IShellDispatch4 },
|
|
|
|
{ 0x0, &IID_IShellDispatch3 },
|
|
|
|
{ 0x0, &IID_IShellDispatch2 },
|
|
|
|
{ 0x0, &IID_IShellDispatch },
|
|
|
|
{ 0x0, &IID_IDispatch },
|
|
|
|
{ 0x0, &IID_IUnknown },
|
|
|
|
{ 0x4, &IID_IObjectSafety },
|
|
|
|
{ 0x20, &IID_IObjectWithSite },
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
ID_NAME(CLSID_ShellDesktop),
|
|
|
|
{
|
2013-07-13 08:07:42 +00:00
|
|
|
{ -0x8, &CLSID_ShellDesktop },
|
|
|
|
{ -0x8, &IID_IObjectWithSite },
|
2013-07-07 09:10:31 +00:00
|
|
|
{ 0x0, &IID_IUnknown },
|
2013-11-05 09:28:05 +00:00
|
|
|
{ 0x4, &IID_IStorage },
|
2013-07-07 09:10:31 +00:00
|
|
|
{ 0x8, &IID_IPersistFolder2 },
|
|
|
|
{ 0x8, &IID_IPersistFolder },
|
|
|
|
{ 0x8, &IID_IPersist },
|
|
|
|
{ 0xc, &IID_IShellIcon },
|
|
|
|
{ 0x14, &IID_IContextMenuCB },
|
2015-02-24 12:52:18 +00:00
|
|
|
{ 0x18, &IID_ITranslateShellChangeNotify },
|
2016-04-09 14:05:08 +00:00
|
|
|
{ 0x1c, &IID_IItemNameLimits },
|
2013-07-07 09:10:31 +00:00
|
|
|
{ 0x20, &IID_IOleCommandTarget },
|
2015-02-25 16:22:26 +00:00
|
|
|
{ FARAWY, &IID_IShellIconOverlay },
|
2013-07-07 09:10:31 +00:00
|
|
|
{ FARAWY, &IID_IShellFolder2 },
|
|
|
|
{ FARAWY, &IID_IShellFolder },
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
ID_NAME(CLSID_ShellFSFolder),
|
|
|
|
{
|
|
|
|
{ 0x0, &IID_IUnknown },
|
|
|
|
{ 0xc, &IID_IShellFolder2 },
|
|
|
|
{ 0xc, &IID_IShellFolder },
|
|
|
|
{ 0x10, &IID_IShellIcon },
|
2015-02-25 16:22:26 +00:00
|
|
|
{ 0x14, &IID_IShellIconOverlay },
|
2013-07-07 09:10:31 +00:00
|
|
|
{ 0x18, &IID_IPersistFolder3 },
|
|
|
|
{ 0x18, &IID_IPersistFolder2 },
|
|
|
|
{ 0x18, &IID_IPersistFolder },
|
|
|
|
{ 0x18, &IID_IPersist },
|
2015-04-19 21:28:09 +00:00
|
|
|
{ 0x18, &IID_IPersistFreeThreadedObject },
|
2013-11-05 09:28:05 +00:00
|
|
|
{ 0x1c, &IID_IStorage },
|
2016-04-09 14:05:08 +00:00
|
|
|
{ 0x24, &IID_IPropertySetStorage },
|
|
|
|
{ 0x28, &IID_IItemNameLimits },
|
2013-07-07 09:10:31 +00:00
|
|
|
{ 0x2c, &IID_IContextMenuCB },
|
|
|
|
{ 0x34, &IID_IOleCommandTarget },
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
ID_NAME(CLSID_ShellFldSetExt),
|
|
|
|
{
|
2013-07-13 08:07:42 +00:00
|
|
|
{ 0x0, &IID_IShellPropSheetExt },
|
|
|
|
{ 0x0, &IID_IUnknown },
|
|
|
|
{ 0x4, &IID_IShellExtInit },
|
2013-07-07 09:10:31 +00:00
|
|
|
{ 0x8, &IID_IObjectWithSite },
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
ID_NAME(CLSID_ShellFolderView),
|
|
|
|
{
|
|
|
|
{ 0x0, &IID_IShellFolderViewDual2 },
|
|
|
|
{ 0x0, &IID_IShellFolderViewDual },
|
|
|
|
{ 0x0, &IID_IDispatch },
|
|
|
|
{ 0x0, &IID_IUnknown },
|
|
|
|
{ 0x4, &IID_IShellService },
|
|
|
|
{ 0x8, &IID_IServiceProvider },
|
|
|
|
{ 0xc, &IID_IObjectSafety },
|
|
|
|
{ 0x14, &IID_IObjectWithSite },
|
2016-04-09 14:05:08 +00:00
|
|
|
{ 0x1c, &IID_IConnectionPointContainer },
|
2013-07-07 09:10:31 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
ID_NAME(CLSID_ShellFolderViewOC),
|
|
|
|
{
|
|
|
|
{ 0x0, &IID_IFolderViewOC },
|
|
|
|
{ 0x0, &IID_IDispatch },
|
|
|
|
{ 0x0, &IID_IUnknown },
|
2016-04-09 14:05:08 +00:00
|
|
|
{ 0x4, &IID_IProvideClassInfo2 },
|
|
|
|
{ 0x4, &IID_IProvideClassInfo },
|
2013-07-07 09:10:31 +00:00
|
|
|
{ 0x8, &IID_IObjectSafety },
|
2016-04-09 14:05:08 +00:00
|
|
|
{ 0x10, &IID_IConnectionPointContainer },
|
2013-07-07 09:10:31 +00:00
|
|
|
{ 0x88, &IID_IPersistStreamInit },
|
|
|
|
{ 0x88, &IID_IPersist },
|
2016-04-09 14:05:08 +00:00
|
|
|
{ 0x8c, &IID_IOleControl },
|
2013-07-07 09:10:31 +00:00
|
|
|
{ 0x90, &IID_IOleObject },
|
|
|
|
{ 0x94, &IID_IOleInPlaceActiveObject },
|
|
|
|
{ 0x98, &IID_IOleInPlaceObjectWindowless },
|
|
|
|
{ 0x98, &IID_IOleInPlaceObject },
|
|
|
|
{ 0x98, &IID_IOleWindow },
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
ID_NAME(CLSID_ShellItem),
|
|
|
|
{
|
|
|
|
{ 0x0, &IID_IShellItem },
|
|
|
|
{ 0x0, &IID_IUnknown },
|
|
|
|
{ 0x4, &IID_IPersistIDList },
|
2016-04-09 14:05:08 +00:00
|
|
|
{ 0x8, &IID_IParentAndItem },
|
2013-07-07 09:10:31 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
ID_NAME(CLSID_ShellLink),
|
|
|
|
{
|
|
|
|
{ 0x0, &IID_IShellLinkA },
|
|
|
|
{ 0x0, &IID_IUnknown },
|
|
|
|
{ 0x4, &IID_IShellLinkW },
|
|
|
|
{ 0x8, &IID_IPersistStream },
|
|
|
|
{ 0xc, &IID_IPersistFile },
|
2013-07-13 08:07:42 +00:00
|
|
|
{ 0x10, &IID_IShellExtInit },
|
2013-07-07 09:10:31 +00:00
|
|
|
{ 0x14, &IID_IContextMenu3 },
|
|
|
|
{ 0x14, &IID_IContextMenu2 },
|
|
|
|
{ 0x14, &IID_IContextMenu },
|
|
|
|
{ 0x18, &IID_IDropTarget },
|
|
|
|
{ 0x1c, &IID_IQueryInfo },
|
2015-02-25 16:22:26 +00:00
|
|
|
{ 0x20, &IID_IShellLinkDataList },
|
2013-07-07 09:10:31 +00:00
|
|
|
{ 0x24, &IID_IExtractIconA },
|
|
|
|
{ 0x28, &IID_IExtractIconW },
|
|
|
|
{ 0x2c, &IID_IExtractImage2 },
|
|
|
|
{ 0x2c, &IID_IExtractImage },
|
|
|
|
{ 0x30, &IID_IPersistPropertyBag },
|
|
|
|
{ 0x34, &IID_IServiceProvider },
|
2016-04-09 14:05:08 +00:00
|
|
|
{ 0x38, &IID_IFilter },
|
2013-07-07 09:10:31 +00:00
|
|
|
{ 0x3c, &IID_IObjectWithSite },
|
2016-04-09 14:05:08 +00:00
|
|
|
{ 0x44, &IID_ICustomizeInfoTip },
|
2016-04-09 15:13:01 +00:00
|
|
|
{ FARAWY, &IID_ISLTracker },
|
2013-07-07 09:10:31 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
#if 0 // Apparently we can only get this through Folder.Items().GetLink
|
|
|
|
{
|
|
|
|
ID_NAME(CLSID_ShellLinkObject),
|
|
|
|
{
|
|
|
|
{ 0x0, &IID_IUnknown },
|
|
|
|
}
|
|
|
|
},
|
|
|
|
#endif
|
|
|
|
{
|
|
|
|
ID_NAME(CLSID_StartMenu),
|
|
|
|
{
|
|
|
|
{ -0x48, &IID_IOleCommandTarget },
|
|
|
|
{ -0x44, &IID_IServiceProvider },
|
|
|
|
{ -0x40, &IID_IDeskBar },
|
|
|
|
{ -0x40, &IID_IOleWindow },
|
|
|
|
{ -0x3c, &IID_IInputObjectSite },
|
|
|
|
{ -0x38, &IID_IInputObject },
|
|
|
|
{ 0x0, &IID_IMenuPopup },
|
|
|
|
{ 0x0, &IID_IUnknown },
|
|
|
|
{ 0x4, &IID_IObjectWithSite },
|
|
|
|
{ 0x8, &IID_IBanneredBar },
|
|
|
|
{ 0xc, &IID_IInitializeObject },
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
ID_NAME(CLSID_StartMenuPin),
|
|
|
|
{
|
2013-07-13 08:07:42 +00:00
|
|
|
{ 0x0, &IID_IShellExtInit },
|
|
|
|
{ 0x0, &IID_IUnknown },
|
2013-07-07 09:10:31 +00:00
|
|
|
{ 0x4, &IID_IContextMenu },
|
|
|
|
{ 0xc, &IID_IObjectWithSite },
|
|
|
|
}
|
|
|
|
},
|
2016-04-12 13:18:32 +00:00
|
|
|
{
|
|
|
|
ID_NAME(CLSID_Thumbnail),
|
|
|
|
{
|
|
|
|
{ 0x0, &IID_IUnknown },
|
|
|
|
{ 0x4, &IID_IParentAndItem },
|
|
|
|
{ 0x8, &IID_IObjectWithSite },
|
|
|
|
},
|
|
|
|
},
|
2013-07-07 09:10:31 +00:00
|
|
|
{
|
|
|
|
ID_NAME(CLSID_TrackShellMenu),
|
|
|
|
{
|
|
|
|
{ 0x0, &IID_ITrackShellMenu },
|
|
|
|
{ 0x0, &IID_IShellMenu },
|
|
|
|
{ 0x0, &IID_IUnknown },
|
|
|
|
{ 0x4, &IID_IShellMenu2 },
|
|
|
|
{ 0x8, &IID_IObjectWithSite },
|
|
|
|
{ 0xc, &IID_IServiceProvider },
|
|
|
|
}
|
|
|
|
},
|
2018-02-07 01:14:07 +00:00
|
|
|
{
|
|
|
|
ID_NAME(CLSID_UserNotification),
|
|
|
|
{
|
|
|
|
{ 0x0, &IID_IUserNotification },
|
|
|
|
{ 0x0, &IID_IUnknown },
|
|
|
|
// { 0x4, &IID_IUserNotification2 }, // On Vista+
|
|
|
|
}
|
|
|
|
},
|
2013-07-07 09:10:31 +00:00
|
|
|
};
|
|
|
|
static const INT ExpectedInterfaceCount = RTL_NUMBER_OF(ExpectedInterfaces);
|
|
|
|
|
|
|
|
START_TEST(shell32)
|
|
|
|
{
|
|
|
|
TestClasses(L"shell32", ExpectedInterfaces, ExpectedInterfaceCount);
|
|
|
|
}
|