{"id":"runtime--HostAccessibility.PublishRoot","name":"HostAccessibility.PublishRoot","owner":"yeho","package":"runtime.HostAccessibility","kind":"builtin","signature":"HostAccessibility.PublishRoot(int window, int native_identity, int generation, text name, bool focused, bool enabled) -> bool","description":"Publish root through the HostAccessibility runtime.","context":"Built into Yeho; no package import is needed. Native services require an admitted host and the correct resource lifecycle.","parameters":[{"name":"window","type":"int","description":"Supply window as int.","rule":"Int"},{"name":"native_identity","type":"int","description":"Supply native identity as int.","rule":"Int"},{"name":"generation","type":"int","description":"Supply generation as int.","rule":"Int"},{"name":"name","type":"text","description":"Supply name as text.","rule":"Text"},{"name":"focused","type":"bool","description":"Supply focused as bool.","rule":"Bool"},{"name":"enabled","type":"bool","description":"Supply enabled as bool.","rule":"Bool"}],"returns":"bool","members":[],"tags":["builtin","cpu","hostaccessibility","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"src/compiler/common/intrinsic_registry.cpp","line":1131,"sha256":"14d29529d2d3c0e2b587f83c7f125b99ada142ed7ae28612701ea6cb9174ac65"},"status":"registered-intrinsic","notes":["The example checks the call shape. Opening windows, recording audio, changing files, network operations, and process operations have real effects when run. Follow the corresponding package lifecycle before using live resources."],"examples":[{"id":"usage","title":"Call HostAccessibility.PublishRoot","description":"A complete typed caller with illustrative arguments. Native operations need the corresponding host and resources.","code":"int window = 1\nint native_identity = 1\nint generation = 1\ntext name = \"Nova\"\nbool focused = true\nbool enabled = true\nbool result = HostAccessibility.PublishRoot(window, native_identity, generation, name, focused, enabled)\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.runtime__hostaccessibility_publishroot\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n","tags":["cpu","builtin"],"run":"cpu-oracle","verification":"type checked","sha256":"fe1e798e659d577d5ee527245879ef8fd4a383f52b4b5c46d66f539356f3d1cd","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=runtime--HostAccessibility.PublishRoot","json":"https://demonhunterlabs.com/reference/items/runtime--HostAccessibility.PublishRoot.json","markdown":"https://demonhunterlabs.com/reference/text/runtime--HostAccessibility.PublishRoot.md"}
