Exemplo n.º 1
0
 public static IntPtr SetWindowLongPtr(IntPtr hWnd, NativeMethods.GWLP nIndex, IntPtr dwNewLong)
 {
     if (IntPtr.Size == 8)
     {
         return(NativeMethods.SetWindowLongPtr(hWnd, (int)nIndex, dwNewLong));
     }
     return(new IntPtr(NativeMethods.SetWindowLong(hWnd, (int)nIndex, dwNewLong.ToInt32())));
 }
Exemplo n.º 2
0
 public static IntPtr GetWindowLongPtr(IntPtr hWnd, NativeMethods.GWLP nIndex)
 {
     if (IntPtr.Size == 8)
     {
         return(NativeMethods.GetWindowLongPtr(hWnd, (int)nIndex));
     }
     return(new IntPtr(NativeMethods.GetWindowLong(hWnd, (int)nIndex)));
 }