I would like to know , how file manager like WinRAR manage it to enable Drag & Drop support for their archive file (when a file is dropped on a .rar-file it opens and optionally WinRAR adds the file to archive).
EDIT: After some comment, I want to clarify what I want to do (see Image):
You need to implement a Shell Drop Handler.
This is a COM object which implements the IPersistFile
and IDropTarget
interfaces. IPersistFile
will tell you which file is being dropped on. IDropTarget
will give you an IDataObject
to tell you which files/data are being dropped.
The documentation is here: