cm_CopyToClipboard

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
zsgm02
Junior Member
Junior Member
Posts: 19
Joined: 2005-02-02, 08:55 UTC

cm_CopyToClipboard

Post by *zsgm02 »

Guys,

Does anyone know what format does this TC API uses to put the selected lists to the clipboard? I have enumerated through the clipboard formats after issuing cm_CopyToClipboard, it seems that there are several custom registered clipboard formats, with which I cannot do too much.

Also I found CF_HDROP, which is - according to MSDN - a list of files, embedded in an "internal drop structure".

Can anyone shed some light on this TC functionality?

Thanks,
Zoltan
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50390
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

TC uses OLE copy and paste on cm_CopyToClipboard. It doesn't copy anything by itself, it just uses the IContextMenu to invoke the 'copy' verb. This can copy the following:
CF_HDROP: List of files
CFSTR_SHELLIDLIST: Item IDlists
CFSTR_FILEDESCRIPTOR: File descriptors
CFSTR_FILECONTENTS: File content using interfaces like ISTREAM
CFSTR_FILENAMEMAP: Map of file names

Check http://msdn.microsoft.com for these formats.
Author of Total Commander
https://www.ghisler.com
zsgm02
Junior Member
Junior Member
Posts: 19
Joined: 2005-02-02, 08:55 UTC

Post by *zsgm02 »

Thanks!
Post Reply