println(WinUser.WINDOWINFO().also { User32.INSTANCE.GetWindowInfo(User32.INSTANCE.GetForegroundWindow(), it) }.dwStyle or 0x00C00000)
In theory, this code should check the style of the window for the presence of a header line (according to this table). But, for some reason, it returns some number instead of 0 or 1. I tried the same and (I don’t understand much about disassembling such a number), the same nonsense