User32OpenClipboard Method
Opens the clipboard for examination and prevents other applications from modifying the clipboard content.
Namespace: DevCase.Win32.NativeMethodsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("User32.dll", ExactSpelling = true, SetLastError = true)]
public static bool OpenClipboard(
IntPtr hWndNewOwner
)
<DllImportAttribute("User32.dll", ExactSpelling := true, SetLastError := true>]
Public Shared Function OpenClipboard (
hWndNewOwner As IntPtr
) As Boolean
Dim hWndNewOwner As IntPtr
Dim returnValue As Boolean
returnValue = User32.OpenClipboard(hWndNewOwner)
public:
[DllImportAttribute(L"User32.dll", ExactSpelling = true, SetLastError = true)]
static bool OpenClipboard(
IntPtr hWndNewOwner
)
[<DllImportAttribute("User32.dll", ExactSpelling = true, SetLastError = true)>]
static member OpenClipboard :
hWndNewOwner : IntPtr -> bool
No code example is currently available or this language may not be supported.
- hWndNewOwner IntPtr
-
A handle to the window to be associated with the open clipboard.
If this parameter is Zero,
the open clipboard is associated with the current task.
Boolean
If the function succeeds, the return value is
.
If the function fails, the return value is
.