This example finds out which window currently owns the clipboard.
#define INCL_WINCLIPBOARD #include <OS2.H> HAB hab; /* . */ HWND hwndClipbrdViewer; hwndClipbrdViewer = WinQueryClipbrdViewer(hab);