Пример #1
0
        // This is aliased as a macro in 32bit Windows.
        public static IntPtr GetWindowLongPtr(IntPtr hwnd, WindowLongValues nIndex)
        {
            IntPtr ret = IntPtr.Zero;

            if (8 == IntPtr.Size)
            {
                ret = GetWindowLongPtr64(hwnd, nIndex);
            }
            else
            {
                ret = GetWindowLongPtr32(hwnd, nIndex);
            }
            if (IntPtr.Zero == ret)
            {
                throw new Win32Exception(Marshal.GetLastWin32Error());
            }
            return(ret);
        }
Пример #2
0
 private static extern IntPtr GetWindowLongPtr64(IntPtr hWnd, WindowLongValues nIndex);
Пример #3
0
 // This is aliased as a macro in 32bit Windows.
 public static IntPtr GetWindowLongPtr(IntPtr hwnd, WindowLongValues nIndex)
 {
     IntPtr ret = IntPtr.Zero;
     if (8 == IntPtr.Size)
     {
        ret = GetWindowLongPtr64(hwnd, nIndex);
     }
     else
     {
        ret = GetWindowLongPtr32(hwnd, nIndex);
     }
     if (IntPtr.Zero == ret)
     {
        throw new Win32Exception(Marshal.GetLastWin32Error());
     }
     return ret;
 }
Пример #4
0
 private static extern IntPtr GetWindowLongPtr64(IntPtr hWnd, WindowLongValues nIndex);
Пример #5
0
 public static extern long SetWindowLong(IntPtr hWnd, WindowLongValues nIndex, WindowExtendedStyles dwNewLong);