MrSwiss wrote:dodicat wrote:I cannot find GetClipboardDataA or GetClipboardDataW amongst the .bi files.
Don't know about .bi files, however, on MSDN it states:
- GetClipboardDataA (ANSI)
- GetClipboardDataW (Unicode)
GetClipboardData does not have that Ansi/Unicode distinction, simply because it is not limited to strings:
GetClipboardData(CF_TEXT)
GetClipboardData(CF_UNICODETEXT)
GetClipboardData(CF_BITMAP)
etc - common formats are listed in WinUser.h, e.g.
Code: Select all
#define CF_TEXT 1
#define CF_BITMAP 2
#define CF_METAFILEPICT 3
#define CF_SYLK 4
#define CF_DIF 5
#define CF_TIFF 6
#define CF_OEMTEXT 7
#define CF_DIB 8
#define CF_PALETTE 9
#define CF_PENDATA 10
#define CF_RIFF 11
#define CF_WAVE 12
#define CF_UNICODETEXT 13
#define CF_ENHMETAFILE 14
#define CF_HDROP 15
#define CF_LOCALE 16
#define CF_DIBV5 17
...
#define CF_OWNERDISPLAY 0x0080
#define CF_DSPTEXT 0x0081
#define CF_DSPBITMAP 0x0082
#define CF_DSPMETAFILEPICT 0x0083
#define CF_DSPENHMETAFILE 0x008E
There are also private formats (0x0200 ... 0x02FF) and GDIOBJ formats (0x0300 ... 0x03FF). The latter allow to pass Gdi objects to the clipboard, which, at the moment when the clipboard gets cleared by another application, get eliminated correctly by the OS using DeleteObject.