How to get text from the ClipBoard on windows.
The application is a console mode application, but code is the same as used in a windows application

ClipBoard Monitor

This is a small application which monitors the clipboard. If the user copies a text to the clipboard which start with http, the application will open that URL in the default browser.
It also shows how to minimize a application to the sys tray.
Should compile with any C++ compiler on Windows.