host.windows · function ·
SnapshotWindowsDisplayColorsV1
Snapshot windows display colors v1.
Connect Windows display, session, clipboard, and accessibility services.
external SnapshotWindowsDisplayColorsV1() returns list of nativeUiDisplayColorCapabilityV1Status: source-declared
Use SnapshotWindowsDisplayColorsV1
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.
list of nativeUiDisplayColorCapabilityV1 result = SnapshotWindowsDisplayColorsV1()
Console.Log(Text.From(result.count))
project.mech
manifestVersion = "2"
package = "api.example.host_windows__snapshotwindowsdisplaycolorsv1"
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/display.yh:85