internal static extern WindowStyles SetWindowLong64(IntPtr hWnd, GetWindowLongConst nIndex, WindowStyles dwNewLong);
/// <summary> /// This static method is required because legacy OSes do not support SetWindowLongPtr /// </summary> public static WindowStyles SetWindowLong(IntPtr hWnd, GetWindowLongConst nIndex, WindowStyles dwNewLong) { return(IntPtr.Size == 8 ? SetWindowLong64(hWnd, nIndex, dwNewLong) : SetWindowLong32(hWnd, nIndex, dwNewLong)); }