in reply to Re: HTML from Clipboard in Windows
in thread HTML from Clipboard in Windows

I think it is because CF_HTML is a custom format and you are supposed to register it by name instead of a magic number.

I've posted some code that does the lookup by name, but your solution is so much nicer and shorter.

Update: GetClipboardFormatName and EnumClipboardFormats, which I interpret to that regard.