BUG: Shell Drag and Drop Handlers Not Called for a Drive Root (248309)



The information in this article applies to:

  • Microsoft Win32 Application Programming Interface (API), when used with:
    • the operating system: Microsoft Windows 2000

This article was previously published under Q248309

SYMPTOMS

If a shell drag and drop handler is registered under the HKEY_CLASSES_ROOT\Directory\ShellEx\DragDropHandlers key, the handler will not be invoked when you drop an object on the root of a drive, such as C:\. This symptom will also occur when the drag and drop handler is registered under the HKEY_CLASSES_ROOT\Folder\ShellEx\DragDropHandlers key.

In Windows NT 4.0, Windows 95, and Windows 98, the drag and drop handler is invoked when an object is dropped on the drive root.

CAUSE

The drive's drop target handler fails to read the drag and drop handlers from these registry keys:

HKEY_CLASSES_ROOT\Directory\ShellEx\DragDropHandlers
HKEY_CLASSES_ROOT\Folder\ShellEx\DragDropHandlers

RESOLUTION

You can avoid this problem by registering the drag and drop handler under the HKEY_CLASSES_ROOT\Drive\ShellEx\DragDropHandlers key in addition to the Directory or Folder keys.

STATUS

Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

Modification Type:MinorLast Reviewed:5/14/2004
Keywords:kbBug kbDragDrop kbExtension kbShellGrp KB248309