<p>I would like to extend some existing applications' drag and drop behavior, and I'm wondering if there is any way to hack on drag and drop support or changes to drag and drop behavior by monitoring the app's message loop and injecting my own messages.</p>

<p>It would also work to monitor for when a paste operation is executed, basically to create a custom behavior when a control only supports pasting text and an image is pasted.</p>

<p>I'm thinking <a href="http://research.microsoft.com/sn/detours/" rel="nofollow noreferrer">Detours</a> might be my best bet, but one problem is that I would have to write custom code for each app I wanted to extend.  If only Windows was designed with extensibility in mind!</p>

<p>On another note, is there any OS that supports extensibility of this nature?</p>

[{'answer_id': 33120, 'author': 'Pat', 'author_id': 238, 'author_profile': 'https://Stackoverflow.com/users/238', 'pm_score': 2, 'selected': False, 'text': '<p>With jQuery newer than 1.2 you can use <a href="http://remysharp.com/2007/10/08/what-is-jsonp/" rel="nofollow noreferrer">JSONP</a></p>\n'}, {'answer_id': 33123, 'author': 'TheSmurf', 'author_id': 1975282, 'author_profile': 'https://Stackoverflow.com/users/1975282', 'pm_score': 4, 'selected': True, 'text': "<p>My best suggestion would be to create a webservice on each site that the other could call with the information that needs to get passed. If security is necessary, it's easy to add an SSL-like authentication scheme (or actual SSL even, if you like) to this system to ensure that only the two servers are able to talk to their respective web services.</p>\n\n<p>This would let you avoid the hackiness that's inherent in any scheme that involves one site opening windows on the other.</p>\n"}, {'answer_id': 33444, 'author': 'Robin Minto', 'author_id': 1456, 'author_profile': 'https://Stackoverflow.com/users/1456', 'pm_score': 0, 'selected': False, 'text': "<p>@jmein - you've described how to create a modal popup (which is exactly what jqModal does) however you've missed that the content of the modal window is served from another domain. The two domains involved belong to two separate companies so can't be combined in the way you describe.</p>\n"}, {'answer_id': 33593, 'author': 'Vitor Silva', 'author_id': 1842864, 'author_profile': 'https://Stackoverflow.com/users/1842864', 'pm_score': 0, 'selected': False, 'text': '<p>i believe @pat was refering to this</p>\n\n<p>"As of jQuery 1.2, you can load JSON data located on another domain if you specify a JSONP callback, "\n<a href="http://docs.jquery.com/Ajax/jQuery.getJSON#urldatacallback" rel="nofollow noreferrer">http://docs.jquery.com/Ajax/jQuery.getJSON#urldatacallback</a></p>\n'}]
['https://Stackoverflow.com/questions/33113', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/327/']