Exemple #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);
 }
Exemple #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));
 }
Exemple #3
0
 public static IntPtr GetWindowLong(HandleRef hWnd, WindowLongType index)
 {
     if (IntPtr.Size == 4)
     {
         return GetWindowLong32(hWnd, index);
     }
     return GetWindowLong64(hWnd, index);
 }
Exemple #4
0
 public static IntPtr GetWindowLong(IntPtr hWnd, WindowLongType index)
 {
     if (IntPtr.Size == 4)
     {
         return GetWindowLong32(hWnd, index);
     }
     return GetWindowLong64(hWnd, index);
 }
Exemple #5
0
 public static IntPtr GetWindowLong(HandleRef hWnd, WindowLongType index)
 {
     if (IntPtr.Size == 4)
     {
         return(GetWindowLong32(hWnd, index));
     }
     return(GetWindowLong64(hWnd, index));
 }
Exemple #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));
 }
 public static IntPtr GetWindowLong(IntPtr hWnd, WindowLongType windowLongType) =>
 IntPtr.Size == 4
         ? GetWindowLong32(hWnd, windowLongType)
         : GetWindowLong64(hWnd, windowLongType);
Exemple #8
0
 private static extern IntPtr GetWindowLong64(HandleRef hwnd, WindowLongType index);
 public static extern IntPtr SetWindowLongPtr(IntPtr hWnd, WindowLongType nIndex, IntPtr dwNewLong);
Exemple #10
0
		private static extern IntPtr SetWindowLong32(HandleRef hwnd, WindowLongType index, WndProc wndProc);
 public static extern IntPtr GetWindowLongPtr(IntPtr hWnd, WindowLongType nIndex);
 private static extern IntPtr SetWindowLongPtr64(IntPtr hwnd, WindowLongType windowLongType, IntPtr wndProc);
 public static IntPtr SetWindowLong(IntPtr hwnd, WindowLongType windowLongType, IntPtr wndProcPtr) =>
 IntPtr.Size == 4
         ? SetWindowLong32(hwnd, windowLongType, wndProcPtr)
         : SetWindowLongPtr64(hwnd, windowLongType, wndProcPtr);
 private static extern IntPtr GetWindowLong32(IntPtr hwnd, WindowLongType windowLongType);
Exemple #15
0
 private static extern IntPtr GetWindowLong64(IntPtr hwnd, WindowLongType index);
Exemple #16
0
 private static extern IntPtr GetWindowLong64(IntPtr hwnd, WindowLongType index);
Exemple #17
0
 private static extern IntPtr SetWindowLong32(IntPtr hwnd, WindowLongType index, IntPtr wndProc);
Exemple #18
0
 private static extern IntPtr SetWindowLong32(IntPtr hwnd, WindowLongType index, IntPtr wndProc);
Exemple #19
0
 private static extern IntPtr SetWindowLongPtr64(HandleRef hwnd, WindowLongType index, IntPtr wndProc);
Exemple #20
0
 private static extern IntPtr SetWindowLongx64(HandleRef hwnd, WindowLongType index, IntPtr info);
Exemple #21
0
 private static extern IntPtr GetWindowLong64(HandleRef hwnd, WindowLongType index);
Exemple #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));
 }
Exemple #23
0
 private static extern IntPtr SetWindowLongPtr64(HandleRef hwnd, WindowLongType index, IntPtr wndProc);
Exemple #24
0
 private static extern IntPtr SetWindowLong32(HandleRef hwnd, WindowLongType index, WndProc wndProc);