GetClipboardViewer function user32

Win32Result<HWND> GetClipboardViewer()

Retrieves the handle to the first window in the clipboard viewer chain.

To learn more, see learn.microsoft.com/windows/win32/api/winuser/nf-winuser-getclipboardviewer.

Implementation

Win32Result<HWND> GetClipboardViewer() {
  resolveGetLastError();
  final result_ = _GetClipboardViewer();
  return .new(value: .new(result_), error: GetLastError());
}