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

  • Tried the same on the idea window, and on the explorer window (where there is no title) - Roman
  • I'm already far from Windows development, but if I remember correctly, I need to apply AND to the style in order to filter by mask. Get either zero or non zero. OR is used to set the style. - Eugene Krivenja

0