Exemple #1
0
 public static extern int SetWindowLongPtr32(IntPtr hWnd, GWLP nIndex, int dwNewLong);
Exemple #2
0
 public static extern IntPtr SetWindowLongPtr64(IntPtr hWnd, GWLP nIndex, IntPtr dwNewLong);
Exemple #3
0
 public static IntPtr SetWindowLongPtr(IntPtr hWnd, GWLP nIndex, IntPtr dwNewLong)
 {
     if (IntPtr.Size > 4)
     {
         return SetWindowLongPtr64(hWnd, nIndex, dwNewLong);
     }
     else
     {
         return (IntPtr)SetWindowLongPtr32(hWnd, nIndex, dwNewLong.ToInt32());
     }
 }
Exemple #4
0
 public static IntPtr SetWindowLongPtr(IntPtr hWnd, GWLP nIndex, IntPtr dwNewLong)
 {
     return SetWindowLongPtr(hWnd, (int)nIndex, dwNewLong);
 }
Exemple #5
0
 public static IntPtr GetWindowLongPtr(IntPtr hWnd, GWLP nIndex)
 {
     return GetWindowLongPtr(hWnd, (int)nIndex);
 }
Exemple #6
0
 public static IntPtr SetWindowLongPtr(IntPtr hWnd, GWLP nIndex, IntPtr dwNewLong)
 {
     return(SetWindowLongPtr(hWnd, (int)nIndex, dwNewLong));
 }
Exemple #7
0
 public static IntPtr GetWindowLongPtr(IntPtr hWnd, GWLP nIndex)
 {
     return(GetWindowLongPtr(hWnd, (int)nIndex));
 }