0 out of 2 rated this helpful - Rate this topic

GetOpenClipboardWindow function

Applies to: desktop apps only

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

Syntax

HWND WINAPI GetOpenClipboardWindow(void);

Parameters

This function has no parameters.

Return value

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.

Requirements

Minimum supported client

Windows 2000 Professional

Minimum supported server

Windows 2000 Server

Header

Winuser.h (include Windows.h)

Library

User32.lib

DLL

User32.dll

See also

Reference
GetClipboardOwner
GetClipboardViewer
OpenClipboard
Conceptual
Clipboard

 

 

Send comments about this topic to Microsoft

Build date: 3/6/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ