IsClipboardFormatAvailable function user32

Win32Result<bool> IsClipboardFormatAvailable(
  1. int format
)

Determines whether the clipboard contains data in the specified format.

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

Implementation

Win32Result<bool> IsClipboardFormatAvailable(int format) {
  resolveGetLastError();
  final result_ = _IsClipboardFormatAvailable(format);
  return .new(value: result_ != FALSE, error: GetLastError());
}