You need to use the CF_HDROP format and DragQueryFile() to access the
temporary file names.
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
"Johann Wagner" <johann.wagner@dieeinspritzer.at> wrote in message
news:ux5YA2psDHA.700@TK2MSFTNGP11.phx.gbl...[color=blue]
> Hello Dmitry,
>
> thank you for your help! I can get the actual selection as you described.
>
> But you wrote that the drag data contains messages in MSG format. Can i[/color]
get[color=blue]
> the messages and save them to .msg files?
> The FileContents Data is null so i think it must be the[/color]
RenPrivateMessages.[color=blue]
> Is that right? Can i separate the msg files from there?
> Do you know how i can do that?
>
> Johann
>
> "Dmitry Streblechenko" <dmitry@dimastr.com> schrieb im Newsbeitrag
> news:umGry6EsDHA.1692@TK2MSFTNGP12.phx.gbl...[color=green]
> > Unless you are using Extended MAPI, there is no way to do that - besides[/color][/color]
a[color=blue][color=green]
> > couple of internal formats, drag data contains messages in the MSG[/color][/color]
format.[color=blue][color=green]
> > Or, since a user must select the messages in Outlook first to drag them,
> > simply query Application.ActiveExplorer.Selection collection.
> >
> > Dmitry Streblechenko (MVP)
> >
http://www.dimastr.com/
> > OutlookSpy - Outlook, CDO
> > and MAPI Developer Tool
> >
> >
> > "Johann Wagner" <johann.wagner@dieeinspritzer.at> wrote in message
> > news:%23DaHRQ0rDHA.3532@TK2MSFTNGP11.phx.gbl...[color=darkred]
> > > Hello!
> > >
> > > I want to drop an email in my C# application. I get the drop event and[/color][/color]
> the[color=green][color=darkred]
> > > dataobject. But i cannot interpret the data in the dataobject. So i[/color][/color]
> cannot[color=green][color=darkred]
> > > get the email. I have found a code sample for getting appendix via
> > > drag&drop, but this doesn't work for the email, too. Can somebody give[/color][/color]
> me[color=green]
> > a[color=darkred]
> > > tip how i can get the email?
> > >
> > > Regards,
> > > Johann
> > >
> > >[/color]
> >
> >[/color]
>
>[/color]