We'll begin by looking at the code involved for transferring data to the clipboard (Cut and Copy) and getting access to clipboard data (Paste).
Windows supports various predefined clipboard formats that have identifiers beginning with the prefix CF defined in WINUSER.H.
First, there are three types of text data that can be stored in the clipboard, and another related clipboard format:
CF_TEXT A NULL-terminated ANSI character-set character string containing a carriage return and a linefeed character at the end of each line. This is the simplest form of clipboard data. The data to be transferred to the clipboard is stored in a memory block and is transferred using the handle to the block. ...