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) {
resolveGetLastError();
final result_ = _OpenClipboard(hWndNewOwner ?? nullptr);
return .new(value: result_ != FALSE, error: GetLastError());
}