openClipboard function

bool openClipboard(
  1. [Pointer<NativeType> handle]
)

Opens the clipboard for examination and prevents other applications from modifying the clipboard content. After this closeClipboard should be called. Returns false if this fails.

Implementation

bool openClipboard([Pointer handle]) {
  handle ??= nullptr;
  return _openClipboardFunc(handle) == 0 ? false : true;
}