private SetWindowLongPtr32 ( |
||
hWnd | ||
nIndex | GWL | |
dwNewLong | int | |
return | int |
public static IntPtr SetWindowLongPtr(IntPtr hwnd, GWL nIndex, IntPtr dwNewLong) { if (8 == IntPtr.Size) { return(NativeMethods.SetWindowLongPtr64(hwnd, nIndex, dwNewLong)); } return(new IntPtr(NativeMethods.SetWindowLongPtr32(hwnd, nIndex, dwNewLong.ToInt32()))); }