{"id":"window--windowHandle","name":"windowHandle","owner":"yeho","package":"window","kind":"thing","signature":"external thing windowHandle","description":"A window handle record carrying id.","context":"Open, select, inspect, and close native application windows.","parameters":[],"returns":"void","members":[{"name":"id","kind":"field","type":"int","description":"Stores id as int.","signature":"int id","tags":["thing","field","window"],"updated":"2026-09-09"},{"name":"windowHandle","kind":"constructor","parameters":[{"name":"id","type":"int","description":"Id."}],"returns":"void","signature":"windowHandle(int id)","description":"Window handle.","tags":["thing","constructor","window"],"updated":"2026-09-09"},{"name":"Valid","kind":"method","parameters":[],"returns":"bool","signature":"Valid() returns bool","description":"Valid.","tags":["thing","method","window"],"exampleId":"method-Valid-2","updated":"2026-09-09"}],"tags":["cpu","method","source-example","thing","window","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"packages/window/window.yh","line":1,"sha256":"33d5aaaa49321134dd3cf650fc9960ad6f42e001783530a2bfed1a6e52d776f3"},"status":"source-declared","notes":["Package presence and a declaration do not establish support on every host. Host services need their platform and lifecycle setup."],"examples":[{"id":"usage","title":"Use windowHandle","description":"A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.","code":"using window\n\n// Open, select, inspect, and close native application windows.\nwindowHandle sample = windowHandle(1)\nConsole.Log(Text.From(sample.id))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.window__windowhandle\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"window\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/window\"\n","tags":["cpu","source-example"],"verification":"type checked","run":"cpu-oracle","sha256":"5adc35a69826adf28892e734ee17d1f1930391a1f7d9f1a6515112c7dfce012a","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-Valid-2","title":"windowHandle.Valid","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using window\n\n// Valid.\nwindowHandle instance = windowHandle(1)\nbool result = instance.Valid()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.window__windowhandle\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"window\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/window\"\n","tags":["cpu","method","source-example"],"run":"cpu-oracle","verification":"type checked","sha256":"8294658c276e278f3f38e41b2334a7b1be3a9e89fb412b596f37518fc5e60848","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":["id","windowHandle","Valid"],"url":"https://demonhunterlabs.com/academy/api?item=window--windowHandle","json":"https://demonhunterlabs.com/reference/items/window--windowHandle.json","markdown":"https://demonhunterlabs.com/reference/text/window--windowHandle.md"}
