GetClipboardOwner

2.x

  HWND GetClipboardOwner(void)    

The GetClipboardOwner function retrieves the handle of the window that currently owns the clipboard, if any.

Parameters

This function has no parameters.

Return Value

The return value identifies the window that owns the clipboard if the function is successful. Otherwise, it is NULL.

Comments

The clipboard can still contain data even if the clipboard is not currently owned.

See Also

CloseClipboard, GetClipboardData, GetClipboardViewer, OpenClipboard