host.windows · function ·
CreateWindowsUiAccessibilityBridge
Create windows ui accessibility bridge from the supplied values.
Connect Windows display, session, clipboard, and accessibility services.
external CreateWindowsUiAccessibilityBridge(int window, int ownerThread) returns windowsUiAccessibilityBridgeStatus: source-declared
Parameters
int window- Supply window as int.
int ownerThread- Supply owner thread as int.
Use CreateWindowsUiAccessibilityBridge
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.
int window = 1
int ownerThread = 1
windowsUiAccessibilityBridge result = CreateWindowsUiAccessibilityBridge(window, ownerThread)
Console.Log("Inspect result in your debugger")
project.mech
manifestVersion = "2"
package = "api.example.host_windows__createwindowsuiaccessibilitybridge"
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/accessibility.yh:515