Exemple #1
0
 public static IntPtr SetWindowLongPtr(HandleRef hWnd, WindowLongParam nIndex, IntPtr dwNewLong)
 {
     if (IntPtr.Size == 8)
     {
         return(SetWindowLongPtr64(hWnd, nIndex, dwNewLong));
     }
     else
     {
         return(new IntPtr(SetWindowLong32(hWnd, nIndex, dwNewLong.ToInt32())));
     }
 }
Exemple #2
0
 public static IntPtr GetWindowLongPtr(IntPtr hWnd, WindowLongParam nIndex)
 {
     if (IntPtr.Size == 8)
     {
         return(GetWindowLongPtr64(hWnd, nIndex));
     }
     else
     {
         return(GetWindowLongPtr32(hWnd, nIndex));
     }
 }
 public static extern uint GetWindowLong(IntPtr hWnd, WindowLongParam nIndex);
 public static extern uint SetWindowLong(IntPtr hWnd, WindowLongParam nIndex, uint dwNewLong);
Exemple #5
0
 private static extern IntPtr GetWindowLongPtr64(IntPtr hWnd, [In][MarshalAs(UnmanagedType.I4)] WindowLongParam nIndex);
Exemple #6
0
 private static extern IntPtr SetWindowLongPtr64(HandleRef hWnd, [In][MarshalAs(UnmanagedType.I4)] WindowLongParam nIndex, IntPtr dwNewLong);
 public static IntPtr GetWindowLongPtr(IntPtr hWnd, WindowLongParam nIndex)
 => IntPtr.Size == 8
        ? GetWindowLongPtr64(hWnd, (int)nIndex)
        : GetWindowLongPtr32(hWnd, (int)nIndex);
Exemple #8
0
 private static extern int SetWindowLong32(HandleRef hWnd, [In][MarshalAs(UnmanagedType.I4)] WindowLongParam nIndex, int dwNewLong);
 public static IntPtr SetWindowLongPtr(HandleRef hWnd, WindowLongParam nIndex, IntPtr dwNewLong)
 => SetWindowLongPtr(hWnd, (int)nIndex, dwNewLong);
Exemple #10
0
 internal static extern IntPtr SetWindowLongPtr(IntPtr hWnd, WindowLongParam nIndex, IntPtr dwNewLong);
Exemple #11
0
 internal static extern IntPtr GetWindowLongPtr(IntPtr hWnd, WindowLongParam nIndex);
Exemple #12
0
 public static int GetWindowLong(IntPtr hWnd, WindowLongParam flags)
 {
     return(UnsafeNativeMethods.GetWindowLong(hWnd, (int)flags));
 }
Exemple #13
0
 public static extern int SetWindowLongPtr(IntPtr hWnd, WindowLongParam nIndex, IntPtr dwNewLong);