public static IntPtr SetClassLongPtr(IntPtr hwnd, Standard.GCLP nIndex, IntPtr dwNewLong) { if (8 == IntPtr.Size) { return(SetClassLongPtr64(hwnd, nIndex, dwNewLong)); } return(new IntPtr(SetClassLongPtr32(hwnd, nIndex, dwNewLong.ToInt32()))); }
private static extern IntPtr SetClassLongPtr64(IntPtr hWnd, Standard.GCLP nIndex, IntPtr dwNewLong);
private static extern int SetClassLongPtr32(IntPtr hWnd, Standard.GCLP nIndex, int dwNewLong);