public static IntPtr SetWindowLong(HandleRef hwnd, WindowLongType index, IntPtr wndProcPtr) { if (IntPtr.Size == 4) { return SetWindowLong32(hwnd, index, wndProcPtr); } return SetWindowLongPtr64(hwnd, index, wndProcPtr); }
public static IntPtr SetWindowLong(HandleRef hwnd, WindowLongType index, IntPtr wndProcPtr) { if (IntPtr.Size == 4) { return(SetWindowLong32(hwnd, index, wndProcPtr)); } return(SetWindowLongPtr64(hwnd, index, wndProcPtr)); }
public static IntPtr GetWindowLong(HandleRef hWnd, WindowLongType index) { if (IntPtr.Size == 4) { return GetWindowLong32(hWnd, index); } return GetWindowLong64(hWnd, index); }
public static IntPtr GetWindowLong(IntPtr hWnd, WindowLongType index) { if (IntPtr.Size == 4) { return GetWindowLong32(hWnd, index); } return GetWindowLong64(hWnd, index); }
public static IntPtr GetWindowLong(HandleRef hWnd, WindowLongType index) { if (IntPtr.Size == 4) { return(GetWindowLong32(hWnd, index)); } return(GetWindowLong64(hWnd, index)); }
/// <summary> /// Function to set information for the specified window. /// </summary> /// <param name="hwnd">Window handle to set information on.</param> /// <param name="index">Type of information.</param> /// <param name="info">Information to set.</param> /// <returns>A pointer to the previous information, or 0 if not successful.</returns> public static IntPtr SetWindowLong(HandleRef hwnd, WindowLongType index, IntPtr info) { return(IntPtr.Size == 4 ? SetWindowLongx86(hwnd, index, info) : SetWindowLongx64(hwnd, index, info)); }
public static IntPtr GetWindowLong(IntPtr hWnd, WindowLongType windowLongType) => IntPtr.Size == 4 ? GetWindowLong32(hWnd, windowLongType) : GetWindowLong64(hWnd, windowLongType);
private static extern IntPtr GetWindowLong64(HandleRef hwnd, WindowLongType index);
public static extern IntPtr SetWindowLongPtr(IntPtr hWnd, WindowLongType nIndex, IntPtr dwNewLong);
private static extern IntPtr SetWindowLong32(HandleRef hwnd, WindowLongType index, WndProc wndProc);
public static extern IntPtr GetWindowLongPtr(IntPtr hWnd, WindowLongType nIndex);
private static extern IntPtr SetWindowLongPtr64(IntPtr hwnd, WindowLongType windowLongType, IntPtr wndProc);
public static IntPtr SetWindowLong(IntPtr hwnd, WindowLongType windowLongType, IntPtr wndProcPtr) => IntPtr.Size == 4 ? SetWindowLong32(hwnd, windowLongType, wndProcPtr) : SetWindowLongPtr64(hwnd, windowLongType, wndProcPtr);
private static extern IntPtr GetWindowLong32(IntPtr hwnd, WindowLongType windowLongType);
private static extern IntPtr GetWindowLong64(IntPtr hwnd, WindowLongType index);
private static extern IntPtr SetWindowLong32(IntPtr hwnd, WindowLongType index, IntPtr wndProc);
private static extern IntPtr SetWindowLongPtr64(HandleRef hwnd, WindowLongType index, IntPtr wndProc);
private static extern IntPtr SetWindowLongx64(HandleRef hwnd, WindowLongType index, IntPtr info);
/// <summary> /// Function to retrieve information about the specified window. /// </summary> /// <param name="hwnd">Window handle to retrieve information from.</param> /// <param name="index">Type of information.</param> /// <returns>A pointer to the information.</returns> public static IntPtr GetWindowLong(HandleRef hwnd, WindowLongType index) { return(IntPtr.Size == 4 ? GetWindowLongx86(hwnd, index) : GetWindowLongx64(hwnd, index)); }