OpenClipboard function user32
Opens the clipboard for examination and prevents other applications from modifying the clipboard content.
To learn more, see learn.microsoft.com/windows/win32/api/winuser/nf-winuser-openclipboard.
Implementation
Win32Result<bool> OpenClipboard(HWND? hWndNewOwner) {
final result_ = OpenClipboard_Wrapper(hWndNewOwner ?? nullptr);
return .new(value: result_.value.i32 != FALSE, error: result_.error);
}