Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Interop / October 2004

Tip: Looking for answers? Try searching our database.

CFSTR_SHELLIDLIST Clipboard Format

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jeff Gaines - 27 Oct 2004 19:38 GMT
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.


Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.