<p>My <code>C#</code> program has a list of files that can be dragged from it and dropped into another program. My requirements are that the file be copied to a different directory first.</p>

<p>So, can I be notified of the drop operation so that I can only copy the file if operation succeeds? I'd rather wait till I know it needs to be copied before actually performing the copy.</p>

<p>Also, is it possible to know what program the drop operation is occurring in? Ideally I'd like to alter the filepath based on who or what its being dropped.</p>

<p>The solution to this can be in any .NET language or <code>C/C++</code> with <code>COM</code>.</p>

[{'answer_id': 23431, 'author': 'Stu', 'author_id': 414, 'author_profile': 'https://Stackoverflow.com/users/414', 'pm_score': 1, 'selected': False, 'text': '<p>There are a few ambiguities in your question. What operation needs to be successful?</p>\n\n<p>For everything you want to know about drag and drop, browse through these search results (multiple pages worth):</p>\n\n<p><a href="http://www.google.com/search?q=drag+drop+site%3Ablogs.msdn.com%2Foldnewthing&amp;rls=com.microsoft:en-us&amp;ie=UTF-8&amp;oe=UTF-8&amp;startIndex=&amp;startPage=1" rel="nofollow noreferrer">Raymond Chen on drag and drop</a></p>\n'}, {'answer_id': 23436, 'author': 'Nick', 'author_id': 1490, 'author_profile': 'https://Stackoverflow.com/users/1490', 'pm_score': 0, 'selected': False, 'text': "<p>So, you intend to modify the data being dropped based on the drop target?  I don't think this is possible; after all, you populate the data when the drag is initiated.</p>\n"}]
['https://Stackoverflow.com/questions/23370', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/645/']