public static extern int SetWindowLongPtr32(IntPtr hWnd, GWLP nIndex, int dwNewLong);
public static extern IntPtr SetWindowLongPtr64(IntPtr hWnd, GWLP nIndex, IntPtr dwNewLong);
public static IntPtr SetWindowLongPtr(IntPtr hWnd, GWLP nIndex, IntPtr dwNewLong) { if (IntPtr.Size > 4) { return SetWindowLongPtr64(hWnd, nIndex, dwNewLong); } else { return (IntPtr)SetWindowLongPtr32(hWnd, nIndex, dwNewLong.ToInt32()); } }
public static IntPtr SetWindowLongPtr(IntPtr hWnd, GWLP nIndex, IntPtr dwNewLong) { return SetWindowLongPtr(hWnd, (int)nIndex, dwNewLong); }
public static IntPtr GetWindowLongPtr(IntPtr hWnd, GWLP nIndex) { return GetWindowLongPtr(hWnd, (int)nIndex); }
public static IntPtr SetWindowLongPtr(IntPtr hWnd, GWLP nIndex, IntPtr dwNewLong) { return(SetWindowLongPtr(hWnd, (int)nIndex, dwNewLong)); }
public static IntPtr GetWindowLongPtr(IntPtr hWnd, GWLP nIndex) { return(GetWindowLongPtr(hWnd, (int)nIndex)); }