OpenClipboard

2.x

  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.

Parameters

hwnd

Identifies the window to be associated with the open clipboard.

Return Value

The return value is nonzero if the function is successful. It is zero if another application or window has the clipboard opened.

Comments

The window identified by the hwnd parameter will not become the owner of the clipboard until the EmptyClipboard function is called.

See Also

CloseClipboard, EmptyClipboard