I have created simple Explorer Bar extension for Windows explorer. How can I get access to the file list in Explorer window from my bar? And how can I change current folder in Explorer window?
Asked
Active
Viewed 119 times
0
-
Did you lookup MSDN ? Did you find anything useful ? – Raptor Oct 16 '13 at 09:25
-
I did but without any result. – Denis Anisimov Oct 16 '13 at 09:51
1 Answers
1
If I recall correctly, this is how it works. Your bar object should implement IObjectWithSite
and receive a site pointer. Query that for IServiceProvider
, and call QueryService
requesting IShellBrowser
interface. That's your portal to everything else of interest. E.g. IShellBrowser::QueryActiveShellView
to get the currently displayed view; IShellBrowser::BrowseObject
to navigate to a different folder.

Igor Tandetnik
- 50,461
- 4
- 56
- 85
-
May be you know how can I hook changing of selected files list? – Denis Anisimov Nov 04 '13 at 21:20
-
You sink `DWebBrowserEvents2` from shell browser, and handle `NavigateComplete2` event. See also: http://stackoverflow.com/questions/3692836/api-hook-on-a-com-object-function – Igor Tandetnik Nov 04 '13 at 22:46
-
This event is fired when user enter new folder. But I need event when user select or deselect files in shell view window. Does (undocumented?) DShellNameSpaceEvents has any relation to the problem? – Denis Anisimov Nov 05 '13 at 03:28