I know that IShellFolderView
interface is no longer supported by the Windows Shell as of Windows 7. However I am still interested in the methods (i.e RemoveObject
and AddObject
) exposed by that interface. The following call no longer compiles
pShellView->QueryInterface(IID_IShellFolderView, (LPVOID*)&pShellFolderView)
because riid:IID_IShellFolderView
is no longer present in shlobj.h
(latest sdk).
I need access to some methods that would allow me to remove/add or (hide/show) folder objects in a folder view. I read an article that suggested the following call:
SHShellFolderView_Message(?m_hwnd_cabinet?, SFVM_REMOVEOBJECT, (LPARAM)pidl);
however it doesn't seem to produce any effects. I suspect that maybe the hwnd provided (i.e m_hwnd_cabinet) is not the right one. Can anyone tell me what the correct handle would be there and how can I produce it? Or is there another method?
Thank you!
I am trying to tweak this project https://github.com/stefankueng/tools/blob/main/StExBar/src/Filter.cpp#L44 but it uses IID_IShellFolderView.