// 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); }
private static extern IntPtr GetWindowLongPtr64(IntPtr hWnd, WindowLongValues nIndex);
// 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; }
public static extern long SetWindowLong(IntPtr hWnd, WindowLongValues nIndex, WindowExtendedStyles dwNewLong);