Commenter Ivo wants to know if the RegisterClipboardFormat function returns a UINT, why is the CLIPFORMAT data type defined to be a WORD? Since a WORD is smaller than a UINT, you have to stick in a cast every time you assign the result of RegisterClipboardFormat to a CLIPFORMAT.
Rewind to 16-bit Windows. Back in...