// platform-independent SetWindowLong wrapper private static IntPtr SetWindowLong(IntPtr window, WindowLongOffset offset, IntPtr value) { return IsLong32 ? SetWindowLong32(window, (int)offset, value) : SetWindowLong64(window, (int)offset, value); }
// platform-independent GetWindowLong wrapper private static IntPtr GetWindowLong(IntPtr window, WindowLongOffset offset) { return IsLong32 ? GetWindowLong32(window, (int)offset) : GetWindowLong64(window, (int)offset); }
public static extern uint SetWindowLong(IntPtr hWnd, WindowLongOffset index, uint newValue);
public static extern uint GetWindowLong(IntPtr hWnd, WindowLongOffset index);
// platform-independent SetWindowLong wrapper private static IntPtr SetWindowLong(IntPtr window, WindowLongOffset offset, IntPtr value) { return(IsLong32 ? SetWindowLong32(window, (int)offset, value) : SetWindowLong64(window, (int)offset, value)); }
// platform-independent GetWindowLong wrapper private static IntPtr GetWindowLong(IntPtr window, WindowLongOffset offset) { return(IsLong32 ? GetWindowLong32(window, (int)offset) : GetWindowLong64(window, (int)offset)); }