Skip to content

Latest commit

 

History

History
89 lines (61 loc) · 2.73 KB

nf-winuser-getopenclipboardwindow.md

File metadata and controls

89 lines (61 loc) · 2.73 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:winuser.GetOpenClipboardWindow
GetOpenClipboardWindow function (winuser.h)
Retrieves the handle to the window that currently has the clipboard open.
GetOpenClipboardWindow
GetOpenClipboardWindow function [Data Exchange]
_win32_GetOpenClipboardWindow
_win32_getopenclipboardwindow_cpp
dataxchg.getopenclipboardwindow
winui._win32_getopenclipboardwindow
winuser/GetOpenClipboardWindow
dataxchg\getopenclipboardwindow.htm
dataxchg
VS|winui|~\winui\windowsuserinterface\dataexchange\clipboard\clipboardreference\clipboardfunctions\getopenclipboardwindow.htm
12/05/2018
GetOpenClipboardWindow, GetOpenClipboardWindow function [Data Exchange], _win32_GetOpenClipboardWindow, _win32_getopenclipboardwindow_cpp, dataxchg.getopenclipboardwindow, winui._win32_getopenclipboardwindow, winuser/GetOpenClipboardWindow
winuser.h
Windows.h
Windows
Windows 2000 Professional [desktop apps only]
Windows 2000 Server [desktop apps only]
User32.lib
User32.dll
Windows
19H1
GetOpenClipboardWindow
winuser/GetOpenClipboardWindow
c++
APIRef
kbSyntax
DllExport
User32.dll
GetOpenClipboardWindow

GetOpenClipboardWindow function

-description

Retrieves the handle to the window that currently has the clipboard open.

-returns

Type: HWND

If the function succeeds, the return value is the handle to 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.

-remarks

If an application or 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.

-see-also

Clipboard

Conceptual

GetClipboardOwner

GetClipboardViewer

OpenClipboard

Reference