Drag-and-Drop Handlers

If you know how to implement a context menu handler, implementing a drag-and-drop handler is a piece of cake. Drag-and-drop handlers are context menu handlers that are accessed when a user drops an object after dragging it to a new location. The two kinds of handlers differ only in how you register them. You must use the DragDropHandlers key to register a drag-and-drop handler, as you can see in this sample REG file:

REGEDIT4

[HKEY_CLASSES_ROOT\CLSID\{<CLSID value>}]
@="Sample Context Menu"
[HKEY_CLASSES_ROOT\CLSID\{<CLSID value>}\InprocServer32]
@="c:\\windows\\system\\ctxtmenu.dll"
"ThreadingModel"="Apartment"

[HKEY_CLASSES_ROOT\.NWC]
@="NWCFile"
[HKEY_CLASSES_ROOT\NWCFile]
@="Shell Extension file"
[HKEY_CLASSES_ROOT\NWCFile\shellex\DragDropHandlers]
@="NWCDD"
[HKEY_CLASSES_ROOT\NWCFile\shellex\DragDropHandlers\NWCDD]
@="{<CLSID value>}"