Пример #1
0
        /// <summary>
        // This static method is required because legacy OSes do not support SetWindowLongPtr
        /// </summary>
        public static WindowStyleFlags GetWindowLong(IntPtr hWnd, WindowLongIndex nIndex)
        {
            if (IntPtr.Size == 8)
            {
                return(Native.GetWindowLong64(hWnd, nIndex));
            }

            return(Native.GetWindowLong32(hWnd, nIndex));
        }