Hello, I would like to allow my users to drag-n-drop items from our ListView to their desktop as a ShellLink (referencing file system objects, not URLs). I have successfully saved an IShellLink in an IStream, and also packed it into STGMEDIUM etc. The desktop successfully creates the shell link file, but it will just contain some garbage data (and the shell will not identify the shell link). Are there any markers / signatures for identifying the ShellLink-file? Any recommendations / hints how to hand over a IShellLink to the shell? Thanks in advance Andreas Nilsson
Andreas Nilsson wrote: > I would like to allow my users to drag-n-drop items from our ListView > to their desktop as a ShellLink (referencing file system objects, not > URLs). I think you just need to create a data object representing the target item (the easiest way is to obtain a shell data object from IShellFolder::GetUIObjectOf) and pass it to DoDragDrop along with DROPEFFECT_LINK. -- Jim Barry, Microsoft MVP