I am trying to use the CFSTR_SHELLIDLIST clipboard format to allow the
creation of links to files for a drag and drop operation in a C# app.
I am obtaining PIDL's to the files in question and then setting up a
CIDA structure in global memory - reading it back it seems to be in the
format required in that the handles are recognisable and the offsets
appear to be correct.
I am confused about exactly what I should be copying to the Clipboard,
i.e. is it the pointer to the CIDA structure or do I need also to set
up a STGMEDIUM structure and copy that to the Clipboard?
I have tried both and SetClipboard data returns 0 which indicates the
data wasn't copied. (I use a similar function to set up a DROPFILES
structure and that works fine). I am calling RegisterClipboardFormat
and getting a valid return from that.
I haven't been able to find any examples of doing this, if anybody can
give me some clues or pointers to examples (I can probably translate
VB, C or C++) I would really appreciate it :-)
I can post my routine if that would help but it is a bit lengthy.

Signature
Jeff Gaines Damerham Hampshire UK
"Peter Huang" - 28 Oct 2004 08:30 GMT
Hi Jeff,
I think you may try to post the question under the thread in the same queue
Subject: Drag and Drop
Newsgroups: microsoft.public.dotnet.framework.interop
And our engineer will follow you up in that thread.
Thank you for your understanding!
Best regards,
Peter Huang
Microsoft Online Partner Support

Signature
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
Jeff Gaines - 28 Oct 2004 11:54 GMT
> Hi Jeff,
>
[quoted text clipped - 9 lines]
> Peter Huang
> Microsoft Online Partner Support
OK Peter, have done that thanks :-)

Signature
Jeff Gaines Damerham Hampshire UK
"Peter Huang" - 29 Oct 2004 04:29 GMT
Hi Jeff,
You are welcome.
If your have any other issue, please feel free to post here.
Cheers!
Best regards,
Peter Huang
Microsoft Online Partner Support

Signature
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.