Exemplo n.º 1
0
 public static IntPtr SetWindowLong(HandleRef hwnd, WindowLongType index, IntPtr wndProcPtr)
 {
     if (IntPtr.Size == 4)
     {
         return SetWindowLong32(hwnd, index, wndProcPtr);
     }
     return SetWindowLongPtr64(hwnd, index, wndProcPtr);
 }
Exemplo n.º 2
0
 public static IntPtr SetWindowLong(HandleRef hwnd, WindowLongType index, IntPtr wndProcPtr)
 {
     if (IntPtr.Size == 4)
     {
         return(SetWindowLong32(hwnd, index, wndProcPtr));
     }
     return(SetWindowLongPtr64(hwnd, index, wndProcPtr));
 }
Exemplo n.º 3
0
 public static IntPtr GetWindowLong(HandleRef hWnd, WindowLongType index)
 {
     if (IntPtr.Size == 4)
     {
         return GetWindowLong32(hWnd, index);
     }
     return GetWindowLong64(hWnd, index);
 }
Exemplo n.º 4
0
 public static IntPtr GetWindowLong(IntPtr hWnd, WindowLongType index)
 {
     if (IntPtr.Size == 4)
     {
         return GetWindowLong32(hWnd, index);
     }
     return GetWindowLong64(hWnd, index);
 }
Exemplo n.º 5
0
 public static IntPtr GetWindowLong(HandleRef hWnd, WindowLongType index)
 {
     if (IntPtr.Size == 4)
     {
         return(GetWindowLong32(hWnd, index));
     }
     return(GetWindowLong64(hWnd, index));
 }
Exemplo n.º 6
0
 /// <summary>
 /// Function to set information for the specified window.
 /// </summary>
 /// <param name="hwnd">Window handle to set information on.</param>
 /// <param name="index">Type of information.</param>
 /// <param name="info">Information to set.</param>
 /// <returns>A pointer to the previous information, or 0 if not successful.</returns>
 public static IntPtr SetWindowLong(HandleRef hwnd, WindowLongType index, IntPtr info)
 {
     return(IntPtr.Size == 4 ? SetWindowLongx86(hwnd, index, info) : SetWindowLongx64(hwnd, index, info));
 }
Exemplo n.º 7
0
 public static IntPtr GetWindowLong(IntPtr hWnd, WindowLongType windowLongType) =>
 IntPtr.Size == 4
         ? GetWindowLong32(hWnd, windowLongType)
         : GetWindowLong64(hWnd, windowLongType);
Exemplo n.º 8
0
 private static extern IntPtr GetWindowLong64(HandleRef hwnd, WindowLongType index);
Exemplo n.º 9
0
 public static extern IntPtr SetWindowLongPtr(IntPtr hWnd, WindowLongType nIndex, IntPtr dwNewLong);
Exemplo n.º 10
0
		private static extern IntPtr SetWindowLong32(HandleRef hwnd, WindowLongType index, WndProc wndProc);
Exemplo n.º 11
0
 public static extern IntPtr GetWindowLongPtr(IntPtr hWnd, WindowLongType nIndex);
Exemplo n.º 12
0
 private static extern IntPtr SetWindowLongPtr64(IntPtr hwnd, WindowLongType windowLongType, IntPtr wndProc);
Exemplo n.º 13
0
 public static IntPtr SetWindowLong(IntPtr hwnd, WindowLongType windowLongType, IntPtr wndProcPtr) =>
 IntPtr.Size == 4
         ? SetWindowLong32(hwnd, windowLongType, wndProcPtr)
         : SetWindowLongPtr64(hwnd, windowLongType, wndProcPtr);
Exemplo n.º 14
0
 private static extern IntPtr GetWindowLong32(IntPtr hwnd, WindowLongType windowLongType);
Exemplo n.º 15
0
 private static extern IntPtr GetWindowLong64(IntPtr hwnd, WindowLongType index);
Exemplo n.º 16
0
 private static extern IntPtr GetWindowLong64(IntPtr hwnd, WindowLongType index);
Exemplo n.º 17
0
 private static extern IntPtr SetWindowLong32(IntPtr hwnd, WindowLongType index, IntPtr wndProc);
Exemplo n.º 18
0
 private static extern IntPtr SetWindowLong32(IntPtr hwnd, WindowLongType index, IntPtr wndProc);
Exemplo n.º 19
0
 private static extern IntPtr SetWindowLongPtr64(HandleRef hwnd, WindowLongType index, IntPtr wndProc);
Exemplo n.º 20
0
 private static extern IntPtr SetWindowLongx64(HandleRef hwnd, WindowLongType index, IntPtr info);
Exemplo n.º 21
0
 private static extern IntPtr GetWindowLong64(HandleRef hwnd, WindowLongType index);
Exemplo n.º 22
0
 /// <summary>
 /// Function to retrieve information about the specified window.
 /// </summary>
 /// <param name="hwnd">Window handle to retrieve information from.</param>
 /// <param name="index">Type of information.</param>
 /// <returns>A pointer to the information.</returns>
 public static IntPtr GetWindowLong(HandleRef hwnd, WindowLongType index)
 {
     return(IntPtr.Size == 4 ? GetWindowLongx86(hwnd, index) : GetWindowLongx64(hwnd, index));
 }
Exemplo n.º 23
0
 private static extern IntPtr SetWindowLongPtr64(HandleRef hwnd, WindowLongType index, IntPtr wndProc);
Exemplo n.º 24
0
 private static extern IntPtr SetWindowLong32(HandleRef hwnd, WindowLongType index, WndProc wndProc);