public static IntPtr SetClassLong(IntPtr hWnd, ClassLongIndex nIndex, IntPtr dwNewLong) { if (IntPtr.Size == 4) { return(SetClassLong32(hWnd, nIndex, dwNewLong)); } return(SetClassLong64(hWnd, nIndex, dwNewLong)); }
private static extern IntPtr SetClassLong32(IntPtr hWnd, ClassLongIndex nIndex, IntPtr dwNewLong);
public static IntPtr SetClassLong(IntPtr hWnd, ClassLongIndex nIndex, IntPtr dwNewLong) { if (IntPtr.Size == 4) { return SetClassLong32(hWnd, nIndex, dwNewLong); } return SetClassLong64(hWnd, nIndex, dwNewLong); }
public static extern IntPtr GetClassLongPtr64(IntPtr hWnd, ClassLongIndex nIndex);
public static extern uint GetClassLongPtr32(IntPtr hWnd, ClassLongIndex nIndex);
private static extern uint GetClassLong32(IntPtr hWnd, ClassLongIndex nIndex);
private static extern IntPtr GetClassLong64(IntPtr hWnd, ClassLongIndex nIndex);
private static extern IntPtr GetClassLongPtr(IntPtr hWnd, ClassLongIndex index);