SetWindowLongPtr64() private method

private SetWindowLongPtr64 ( IntPtr hWnd, GWL nIndex, IntPtr dwNewLong ) : IntPtr
hWnd System.IntPtr
nIndex GWL
dwNewLong System.IntPtr
return System.IntPtr
示例#1
0
 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())));
 }