0

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?

Kara
  • 6,115
  • 16
  • 50
  • 57
Denis Anisimov
  • 3,297
  • 1
  • 10
  • 18

1 Answers1

1

If I recall correctly, this is how it works. Your bar object should implement IObjectWithSiteand 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