Discussion:
How do I get the IFolderView of the Desktop on Windows 7?
(too old to reply)
MasamuneXGP
2010-08-08 04:47:50 UTC
Permalink
Raw Message
Greetings all,

I'm looking for a way to get a hold of the IFolderView instance of the
Desktop. In previous versions of windows, I could use the
undocumented WM_GETISHELLBROWSER message (WM_USER + 7) to get the
Desktop's IShellBrowser, then use its QueryActiveShellView method to
get the IShellView instance, and then use QueryInterface on that to
get the IFolderView. Unfortunately, it seems WM_USER+7 no longer
returns anything on Windows 7, which invalidates this approach. Is
there any other way?
g***@google.com
2013-03-28 20:32:08 UTC
Permalink
Raw Message
Post by MasamuneXGP
Greetings all,
I'm looking for a way to get a hold of the IFolderView instance of the
Desktop. In previous versions of windows, I could use the
undocumented WM_GETISHELLBROWSER message (WM_USER + 7) to get the
Desktop's IShellBrowser, then use its QueryActiveShellView method to
get the IShellView instance, and then use QueryInterface on that to
get the IFolderView. Unfortunately, it seems WM_USER+7 no longer
returns anything on Windows 7, which invalidates this approach. Is
there any other way?
Looks like Raymond Chen's just posted something very useful regarding this on his blog: http://blogs.msdn.com/b/oldnewthing/archive/2013/03/18/10403054.aspx
Loading...