internal static extern bool GetWindowInfo(IntPtr hwnd, ref WINDOWINFO pwi);
internal static Int64 GetWindowStyle(IntPtr hwnd) { var info = new WINDOWINFO(); info.cbSize = (uint)Marshal.SizeOf(info); GetWindowInfo(hwnd, ref info); return Convert.ToInt64(info.dwStyle); }
internal static extern bool GetWindowInfo(IntPtr hwnd, ref WINDOWINFO pwi);