OpenClipboard

  BOOL OpenClipboard(hwnd)    
  HWND hwnd; /* handle of window to associate ownership with */

This function opens the clipboard for examination and prevents other applications from modifying the clipboard contents.

Parameters

hwnd

Identifies the window to be associated with the open clipboard.

Return Value

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.

Comments

An application should call the CloseClipboard function for every successful call to the OpenClipboard function.

See Also

CloseClipboard