// This static method is required because Win32 does not support
 // GetWindowLongPtr directly
 private static IntPtr SetWindowLongPtr(IntPtr hWnd, PInvoke.User32.WindowLongIndexFlags nIndex, WinProc newProc)
 {
     if (IntPtr.Size == 8)
     {
         return(SetWindowLongPtr64(hWnd, nIndex, newProc));
     }
     else
     {
         return(SetWindowLongPtr32(hWnd, nIndex, newProc));
     }
 }
Example #2
0
 private static extern IntPtr SetWindowLongPtr(IntPtr hWnd, PInvoke.User32.WindowLongIndexFlags nIndex, WinProc newProc);