Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows Explorer add-ons

How do tools like SVN and Git attach themselves to Windows Explorer, such that they add options to the right-click menu as well as adding the tick/exclamation mark based on whether a file has been edited?

(I'm not after Git or SVN-specific information - I just used them as examples)

like image 205
Smashery Avatar asked Oct 13 '09 03:10

Smashery


People also ask

Is Microsoft adding ads to File Explorer?

You won't be seeing banner ads next to your files, at least for the time being. For the last few days there's been a story making its way around the tech world: Microsoft is putting advertising in File Explorer, the built-in file browser for Windows.

Will Windows 11 have ads in File Explorer?

While the ads weren't intended to be tested externally, it's clear Microsoft is capable of running them inside Windows 11, and the company's brief statement doesn't rule out ads appearing in the File Explorer in the future. This isn't the first time Microsoft has placed ads inside File Explorer, either.


3 Answers

What you want is called Shell Extensions, are in-process COM objects which extends the abilities of Windows operating system.

alt text
(source: csscript.net)

you can see these links

  • The Complete Idiot's Guide to Writing Shell Extensions - Index
  • Registering Shell Extensions

Bye.

like image 62
RRUZ Avatar answered Nov 11 '22 05:11

RRUZ


Explorer allows DLLs to register as shell extensions. A shell extension can provide context menu items, icon overlays and numerous other features. It does this by exposing certain COM interfaces which Explorer calls e.g. prior to displaying a menu or icon. Here's the MSDN home page for shell extensibility -- though oddly enough the stuff about context menus and icon overlays no longer seems to be there -- you may have to try the offline SDK under Win32 and COM Development | User Interface | Windows User Experience | Windows Shell | Shell Developer's Guide | Integration of Applications into the Shell.

like image 27
itowlson Avatar answered Nov 11 '22 06:11

itowlson


Depending on the shell extension you want, they can be QUITE complex to implement. I don't know what you're looking for, to quickly write a nice extension, or to get in to the nitty-gritty and learn all the hands-on of it all. If you aren't as concerned with the how, and just have some ideas you want to implement, check out this library for writing shell extensions...

EZShellExtensions MFC
EZShellExtensions.NET

There are a lot of different types:
- Context Menus
- Property Pages
- Icon Handlers
and many more...

They also have another library for writing namespace extensions (things that show up in the tree pane of Windows Explorer).

like image 31
eidylon Avatar answered Nov 11 '22 05:11

eidylon