@WINOWNER — Searches for a window, and returns its owner window’s handle.

Syntax:
%@WINOWNER[window,flags]

windowwindow title, program name, PID, or HWND
flagsbitmapped:
    1: return window handle in hexadecimal

If no matching window is found, the return value will be 0.

See also: @WINPARENT.