Microsoft KB Archive/203327

{|
 * width="100%"|

HOWTO: Launch an Application via Drag and Drop onto a Shortcut

 * }

Q203327

-

The information in this article applies to:


 * Microsoft Win32 Software Development Kit (SDK), on platform(s):
 * Microsoft Windows 95
 * Microsoft Windows 98
 * the operating system: Microsoft Windows NT
 * the operating system: Microsoft Windows 2000

-

SUMMARY
When an application is serving as a file drag-and-drop source, it is necessary for the source's IDataObject to support multiple clipboard formats to allow the file object to be dropped on a shortcut.

MORE INFORMATION
When a file object is dropped on a shortcut to an application, the application that the shortcut refers to is launched with the dropped file name supplied on the application's command line. To allow this to work correctly, the drag-and-drop source's IDataObject must support both the CF_HDROP and the CFSTR_SHELLIDLIST clipboard formats.

Additional query words: drag drop

Keywords : _IK kbOSWinNT400 kbOSWin2000 kbSDKPlatform kbSDKWin32 kbOSWin kbOSWin95 kbOSWin98 kbGrpDSShell

Issue type : kbhowto

Technology : kbWin32SDKSearch kbAudDeveloper kbSDKSearch kbWin32sSearch