Denis Anisimov
Denis Anisimov

Reputation: 3317

Access to file list from Explorer Bar

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?

Upvotes: 0

Views: 128

Answers (1)

Igor Tandetnik
Igor Tandetnik

Reputation: 52601

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.

Upvotes: 1

Related Questions