The GetOpenClipboardWindow function retrieves the handle of the window that currently has the clipboard open.
HWND GetOpenClipboardWindow(VOID)
This function has no parameters.
If the function succeeds, the return value is the handle of the window that has the clipboard open. If no window has the clipboard open, the return value is NULL. To get extended error information, call GetLastError.
If an application or dynamic-link library (DLL) specifies a NULL window handle when calling the OpenClipboard function, the clipboard is opened but is not associated with a window. In such a case, GetOpenClipboardWindow returns NULL.
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Requires version 1.0 or later.
Header: Declared in winuser.h.
Import Library: Use user32.lib.
Clipboard Overview, Clipboard Functions, GetClipboardOwner, GetClipboardViewer, OpenClipboard