BOOL OpenClipboard(hWnd)
This function opens the clipboard for examination and prevents other applications from modifying the clipboard contents.
Parameter | Type/Description |
hWnd | HWND Identifies the window to be associated with the open clipboard. |
The return value specifies the status of the clipboard. It is nonzero if the clipboard is opened. If the clipboard has already been opened by another application, the return value is zero.
An application should call the CloseClipboard function for every successful call to the OpenClipboard function.