BOOL OpenClipboard(
HWND hWndNewOwner
);
Parameter | Type and description |
---|---|
hWndNewOwner |
Handle to the window to be associated with an opened clipboard. This parameter can be NULL. |
GetLastError
.
An application must call OpenClipboard
to open the clipboard for access. Once the clipboard is open, it displays the specified window as the current owner of the clipboard.
GetLastError
returns ERROR_ACCESS_DENIED
.hWndNewOwner
is NULL, the clipboard is associated with the current task, not a specific window.OpenClipboard
will fail if the clipboard is orphaned. The clipboard becomes orphaned if the owner of the clipboard closes its window without calling CloseClipboard
.CloseClipboard
to close the clipboard for access when it has finished using the clipboard.Package | Value |
---|---|
Minimum supported client | Windows 2000 Professional |
Minimum supported server | Windows 2000 Server |
Header | winuser.h (include Windows.h) |