Exemplo n.º 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);
        }
Exemplo n.º 2
0
 private static extern IntPtr GetWindowLongPtr64(IntPtr hWnd, WindowLongValues nIndex);
Exemplo n.º 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;
 }
Exemplo n.º 4
0
 private static extern IntPtr GetWindowLongPtr64(IntPtr hWnd, WindowLongValues nIndex);
Exemplo n.º 5
0
 public static extern long SetWindowLong(IntPtr hWnd, WindowLongValues nIndex, WindowExtendedStyles dwNewLong);