I can only recommend the LCL unit Clipbrd and class TClipboard.
I don't use Windows myself and don't know much about WinAPI programming.
LCL pulls in a lot of code, thus in your console program you may want to avoid it.
If one GlobalAlloc is all you need for the task, it sounds like a reasonable addition.