OpenClipboard
Opens the Clipboard for examination and prevents other applications from modifying the Clipboard content.
See also: https://msdn.microsoft.com/en-us/library/windows/desktop/ms649048(v=vs.85).aspx
Syntax
OpenClipboard( hwnd )
Parameters
Name | Type | Description |
---|---|---|
hwnd | Long | Required. A handle to the window to be associated with the open Clipboard. If this parameter is NULL, the open Clipboard is associated with the current task. |
Return value
Long : Zero if the function failes. Nonzero otherwise.
Code
Declare Function OpenClipboard Lib "user32" (ByVal hwnd As Long) As Long
See also
- GetStringFromClipboard
- CopyStringToClipboard