Beispiel #1
0
 public static IntPtr SetClassLongPtr(IntPtr hwnd, GCLP nIndex, IntPtr dwNewLong)
 {
     if (8 == IntPtr.Size)
     {
         return(NativeMethods.SetClassLongPtr64(hwnd, nIndex, dwNewLong));
     }
     return(new IntPtr(NativeMethods.SetClassLongPtr32(hwnd, nIndex, dwNewLong.ToInt32())));
 }
 private static extern IntPtr SetClassLongPtr64(IntPtr hWnd, GCLP nIndex, IntPtr dwNewLong);
 private static extern int SetClassLongPtr32(IntPtr hWnd, GCLP nIndex, int dwNewLong);
 public static IntPtr SetClassLongPtr(IntPtr hwnd, GCLP nIndex, IntPtr dwNewLong)
 {
     if (8 == IntPtr.Size)
     {
         return SetClassLongPtr64(hwnd, nIndex, dwNewLong);
     }
     return new IntPtr(SetClassLongPtr32(hwnd, nIndex, dwNewLong.ToInt32()));
 }
Beispiel #5
0
 private static extern IntPtr SetClassLongPtr64(IntPtr hWnd, GCLP nIndex, IntPtr dwNewLong);
Beispiel #6
0
 private static extern int SetClassLongPtr32(IntPtr hWnd, GCLP nIndex, int dwNewLong);
Beispiel #7
0
 private static extern int GetClassLongPtr64(IntPtr hWnd, GCLP nIndex);
Beispiel #8
0
 public static int GetClassLongPtr(IntPtr hwnd, GCLP nIndex)
 {
     if (8 == IntPtr.Size)
     {
         return GetClassLongPtr64(hwnd, nIndex);
     }
     return GetClassLongPtr32(hwnd, nIndex);
 }
Beispiel #9
0
 public static IntPtr SetClassLongPtr(IntPtr hWnd, GCLP nIndex, IntPtr dwNewLong)
 {
     if (IntPtr.Size > 4)
     {
         return SetClassLongPtr64(hWnd, nIndex, dwNewLong);
     }
     else
     {
         return (IntPtr)SetClassLongPtr32(hWnd, nIndex, dwNewLong.ToInt32());
     }
 }