Example #1
0
 public static IntPtr SetWindowLong(HandleRef hwnd, Win32Native.WindowLongType index, IntPtr wndProcPtr)
 {
     if (IntPtr.Size == 4)
     {
         return(Win32Native.SetWindowLong32(hwnd, index, wndProcPtr));
     }
     else
     {
         return(Win32Native.SetWindowLongPtr64(hwnd, index, wndProcPtr));
     }
 }
Example #2
0
 public static IntPtr GetWindowLong(HandleRef hWnd, Win32Native.WindowLongType index)
 {
     if (IntPtr.Size == 4)
     {
         return(Win32Native.GetWindowLong32(hWnd, index));
     }
     else
     {
         return(Win32Native.GetWindowLong64(hWnd, index));
     }
 }
Example #3
0
 private static IntPtr SetWindowLongPtr64(HandleRef hwnd, Win32Native.WindowLongType index, IntPtr wndProc);
Example #4
0
 private static IntPtr GetWindowLong64(HandleRef hwnd, Win32Native.WindowLongType index);