BOOL OpenClipboard(hwnd) | |||||
HWND hwnd; | /* handle of window to associate ownership with | */ |
The OpenClipboard function opens the clipboard. Other applications will not be able to modify the clipboard until the CloseClipboard function is called.
hwnd
Identifies the window to be associated with the open clipboard.
The return value is nonzero if the function is successful. It is zero if another application or window has the clipboard opened.
The window identified by the hwnd parameter will not become the owner of the clipboard until the EmptyClipboard function is called.