Example #1
0
        /// <summary>
        // This static method is required because legacy OSes do not support SetWindowLongPtr
        /// </summary>
        public static WindowStyleFlags SetWindowLong(IntPtr hWnd, WindowLongIndex nIndex, WindowStyleFlags dwNewLong)
        {
            if (IntPtr.Size == 8)
            {
                return(Native.SetWindowLong64(hWnd, nIndex, dwNewLong));
            }

            return(Native.SetWindowLong32(hWnd, nIndex, dwNewLong));
        }