StickysoftDESIGNS
Skip Navigation Links : Articles : Shell Programming : Shell Extension

Shell Extension

It's a Shell extension sample showing how to extend Windows Explorer's user interface.
It integrates its own menu, toolbar buttons, text in the status bar with Windows Explorer and displays a listview control in the right pane of Explorer with some data.

There are 4 classes in the project:

  • CFolderObj which implements IShellFolder and IPersistFolder interfaces.
  • CViewObj which implements IShellView interface.
  • CMainDlg
  • CShellListView

The implementation is pretty straightforward, except for one thing - if you want to handle window messages in the listview control you have to create the modeless dialog first and place a listview control on it.

How to install

Copy the ShellServer.dll to any directory of your choice and register it using regsvr32.exe. Next time when you open the Windows Explorer you'll see one more folder in the left pane tree - Shell Server. Just click on it and you'll see it in action.

Download the source code