示例#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);