win32clipboard.OpenClipboard

None = OpenClipboard(hWnd)

The OpenClipboard function opens the clipboard for examination and prevents other applications from modifying the clipboard content.

Parameters

hWnd=None : PyHANDLE

Integer handle to the window to be associated with the open clipboard. If this parameter is None, the open clipboard is associated with the current task.

Comments

OpenClipboard fails if another window has the clipboard open.
An application should call the CloseClipboard function after every successful call to OpenClipboard.
The window identified by the hWnd parameter does not become the clipboard owner unless the EmptyClipboard function is called.

Win32 API References

Search for OpenClipboard at msdn, google or google groups.

Return Value

If the function succeeds, the return value is None.
If the function fails, win32api.error is raised with the GetLastError info.