示例#1
0
 public static extern int GetWindowLong(IntPtr hWnd, WindowLongs nIndex);
示例#2
0
 public static extern uint SetWindowLong(
     IntPtr hWnd,
     [MarshalAs(UnmanagedType.U4)] WindowLongs nIndex,
     uint dwNewLong);
示例#3
0
文件: Win32.cs 项目: Rainboi64/Fluint
        => Marshal.GetLastWin32Error();         // This alias isn't strictly needed, but it reads better.

        #endregion

        #region GetWindowLong/SetWindowLong and friends
        public static IntPtr GetWindowLongPtr(IntPtr hWnd, WindowLongs nIndex)
        => GetWindowLongPtr(hWnd, (int)nIndex);
示例#4
0
文件: Win32.cs 项目: Rainboi64/Fluint
 public static IntPtr SetWindowLongPtr(IntPtr hWnd, WindowLongs nIndex, IntPtr dwNewLong)
 => SetWindowLongPtr(hWnd, (int)nIndex, dwNewLong);
示例#5
0
 private static extern IntPtr SetWindowLongPtr64(HandleRef hWnd, WindowLongs nIndex, IntPtr dwNewLong);
示例#6
0
 private static extern IntPtr GetWindowLongPtr64(HandleRef hWnd, WindowLongs nIndex);
示例#7
0
 public static IntPtr SetWindowLong(HandleRef hWnd, WindowLongs nIndex, IntPtr dwNewLong)
 {
     if (IntPtr.Size == 4)
     {
         return SetWindowLong32(hWnd, nIndex, dwNewLong);
     }
     return SetWindowLongPtr64(hWnd, nIndex, dwNewLong);
 }
示例#8
0
 public static IntPtr GetWindowLong(HandleRef hWnd, WindowLongs nIndex)
 {
     if (IntPtr.Size == 4)
     {
         return GetWindowLong32(hWnd, nIndex);
     }
     return GetWindowLongPtr64(hWnd, nIndex);
 }
示例#9
0
 public static extern WindowStyle GetWindowLong(IntPtr hWnd, WindowLongs nIndex);