← Back to wkappbot
wkappbot ★☆☆

Eye IPC caller HWND: ResolveCallerTerminalHwnd + __hwnd prefix

Find the real launcher caller window when running through Eye IPC pipe. ResolveCallerTerminalHwnd cascade (CURRENT, EyeCmdPipeClient.WindowDetection.cs): env override -> GA_ROOTOWNER pre-pass on Vis=True PseudoConsoleWindow -> WT_SESSION-matched terminal -> non-terminal ancestor fallback -> Zero (skip). NO foreground P1/P3. Launcher sends single __hwnd only (no __conhwnd). Wire protocol, downstream consumers, GA_ROOTOWNER verification, and superseded steps noted in correction step.

user/developer

Steps

  1. PROBLEM: GetForegroundWindow() in Eye contex...
  2. __hwnd IPC: EyeCmdPipeClient.TryDelegate ->...
  3. GA_ROOTOWNER (flag=3) = THE correct API. Get...
  4. Multi-monitor: negative x/y coords valid on...