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.
In reply to Re^2: HTML from Clipboard in Windows
by Corion
in thread HTML from Clipboard in Windows
by kean
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |