host.windows · thing ·

windowsUiClipboardSnapshot

A windows ui clipboard snapshot record carrying opened, unicodeTextAvailable, rgbaImageAvailable, localeAvailable, sequence, and related state.

cpuhosthost.windowsmethodsource-examplethingwindowsyeho

Connect Windows display, session, clipboard, and accessibility services.

external thing windowsUiClipboardSnapshot

Status: source-declared

Fields and methods (10)
bool opened
Stores opened as bool.
bool unicodeTextAvailable
Stores unicode text available as bool.
bool rgbaImageAvailable
Stores rgba image available as bool.
bool localeAvailable
Stores locale available as bool.
int sequence
Stores sequence as int.
int unicodeTextUnits
Stores unicode text units as int.
bool textReadSafe
Stores text read safe as bool.
bool refreshed
Stores refreshed as bool.
windowsUiClipboardSnapshot(bool opened, bool unicodeTextAvailable, bool rgbaImageAvailable, bool localeAvailable, int sequence, int unicodeTextUnits, bool textReadSafe, bool refreshed)
Windows ui clipboard snapshot.
Validate() returns text
Validate. Complete example

Use windowsUiClipboardSnapshot

A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.

cpu · source-example · type checked

using host.windows

// Connect Windows display, session, clipboard, and accessibility services.
windowsUiClipboardSnapshot sample = windowsUiClipboardSnapshot(true, true, true, true, 1, 1, true, true)
Console.Log(Text.From(sample.opened))
project.mech
manifestVersion = "2"
package = "api.example.host_windows__windowsuiclipboardsnapshot"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

[[dependencies]]
package = "host.windows"
version = "0.1.0"
path = "../../../yeho/packages/host/windows"

windowsUiClipboardSnapshot.Validate

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

cpu · method · source-example · type checked

using host.windows

// Validate.
windowsUiClipboardSnapshot instance = windowsUiClipboardSnapshot(true, true, true, true, 1, 1, true, true)
text result = instance.Validate()
Console.Log(Text.From(result))
project.mech
manifestVersion = "2"
package = "api.example.host_windows__windowsuiclipboardsnapshot"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

[[dependencies]]
package = "host.windows"
version = "0.1.0"
path = "../../../yeho/packages/host/windows"
Notes and source

Package presence and a declaration do not establish support on every host. Host services need their platform and lifecycle setup.

yeho/packages/host/windows/clipboard.yh:1