コード例 #1
0
        private static int GetWindowLong(IntPtr hWnd, int nIndex)
        {
            if (IntPtr.Size == 4)
            {
                return(DllUser32.GetWindowLong(hWnd, nIndex));
            }

            return(DllUser32.GetWindowLongPtr(hWnd, nIndex));
        }