Home

Does Outlook, as a Drop Target, support IAsyncOperation?

%3CLINGO-SUB%20id%3D%22lingo-sub-276158%22%20slang%3D%22en-US%22%3EDoes%20Outlook%2C%20as%20a%20Drop%20Target%2C%20support%20IAsyncOperation%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-276158%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Guys%2C%3C%2FP%3E%3CP%3EI%20know%20this%20may%20not%20be%20the%20right%20place%20to%20ask%20but%20I%20think%20it%20worths%20a%20try.%20If%20you%20know%20a%20better%20place%20to%20post%20please%20let%20me%20know.%20Thanks.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20playing%20with%20%3CA%20href%3D%22http%3A%2F%2Fdlaa.me%2Fblog%2Fpost%2F9917797%22%20rel%3D%22nofollow%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%20target%3D%22_blank%22%3ECreating%20something%20from%20nothing%2C%20asynchronously%20%5BDeveloper-friendly%20virtual%20file%20implementation%20for%20.NET%20improved!%5D%3C%2FA%3E.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20brilliant%20article%20demonstrates%20how%20to%20create%20a%20customized%20DataObject%20implementing%20delayed%20data%20extract%20on%20drop%2Fpaste%20and%20asynchronous%20data%20trnasfer%20on%20background%20thread.%20It%20worked%20perfectly%20untill%20I%20tried%20to%20drop%20a%20file%20into%20Outlook%202016.%20It%20still%20works%20but%20the%20UI%20is%20not%20responsive%20despite%20the%20fact%20that%20my%20dataobject%20has%20%22IsAsynchronous%22%20set%20to%20true.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAfter%20debugging%20I%20found%20when%20dropped%20to%20Outlook%20IAsyncOperation.GetAsyncMode%20is%20not%20called%20and%20IDataObject.GetData%20is%20called%20on%20the%20UI%20thread.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMy%20question%20is%20does%20Outlook%20support%20IAsyncOperation%3F%20If%20it%20does%20what%20am%20I%20missing%3F%20If%20it%20does%20not%20support%20IAsyncOperation%2C%20is%20there%20a%20workaround%20or%20different%20solution%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERegards%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EXiao%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Xiao Lu
Regular Visitor

Hi Guys,

I know this may not be the right place to ask but I think it worths a try. If you know a better place to post please let me know. Thanks.

 

I am playing with Creating something from nothing, asynchronously [Developer-friendly virtual file implementation for ....

 

This brilliant article demonstrates how to create a customized DataObject implementing delayed data extract on drop/paste and asynchronous data trnasfer on background thread. It worked perfectly untill I tried to drop a file into Outlook 2016. It still works but the UI is not responsive despite the fact that my dataobject has "IsAsynchronous" set to true.

 

After debugging I found when dropped to Outlook IAsyncOperation.GetAsyncMode is not called and IDataObject.GetData is called on the UI thread.

 

My question is does Outlook support IAsyncOperation? If it does what am I missing? If it does not support IAsyncOperation, is there a workaround or different solution?

 

Regards

 

Xiao

 

 

Related Conversations
Enterprise UCaaS: Why Cloud PBX is the Way Forward
williamjack in Discussions on
1 Replies
Description info sur le Get-CalendarDiagnosticAnalysis
MarkH6969 in Exchange on
0 Replies
Issues with @Mentions in Outlook
Andrew Simpson in Exchange on
0 Replies
Modify Outlook invite links
arifC in Microsoft Teams on
4 Replies