The GetClipboardViewer function retrieves the handle of the first window in the clipboard viewer chain.
HWND GetClipboardViewer(VOID)
This function has no parameters.
If the function succeeds, the return value is the handle of the first window in the clipboard viewer chain.
If there is no clipboard viewer, the return value is NULL. To get extended error information, call GetLastError.