public static ClassStyles GetClassLong(this IntPtr hwnd, ClassLongFlags flags) { if (IntPtr.Size == 8) { return (ClassStyles)GetClassLong64(hwnd, flags); } return (ClassStyles)GetClassLong32(hwnd, flags); }
public static ClassStyles SetClassLong(this IntPtr hwnd, ClassLongFlags flags, ClassStyles dwLong) { if (IntPtr.Size == 8) { return((ClassStyles)SetClassLong64(hwnd, flags, (IntPtr)dwLong)); } return((ClassStyles)SetClassLong32(hwnd, flags, (IntPtr)dwLong)); }
public static ClassStyles SetClassLong(this IntPtr hwnd, ClassLongFlags flags, ClassStyles dwLong) { if (IntPtr.Size == 8) { return (ClassStyles)SetClassLong64(hwnd, flags, (IntPtr)dwLong); } return (ClassStyles)SetClassLong32(hwnd, flags, (IntPtr)dwLong); }
public static ClassStyles GetClassLong(this IntPtr hwnd, ClassLongFlags flags) { if (IntPtr.Size == 8) { return((ClassStyles)GetClassLong64(hwnd, flags)); } return((ClassStyles)GetClassLong32(hwnd, flags)); }
public static IntPtr GetClassLongPtr(IntPtr hWnd, ClassLongFlags nIndex) { return((IntPtr.Size > 4) ? GetClassLongPtr64(hWnd, (int)nIndex) : new IntPtr(GetClassLongPtr32(hWnd, (int)nIndex))); }
public static extern IntPtr GetClassLongPtr64(IntPtr hWnd, ClassLongFlags flags);
public static extern uint GetClassLongPtr32(IntPtr hWnd, ClassLongFlags flags);
public static IntPtr GetClassLongPtr(IntPtr hWnd, ClassLongFlags flags) { return(IntPtr.Size > 4 ? GetClassLongPtr64(hWnd, flags) : new IntPtr(GetClassLongPtr32(hWnd, flags))); }
public static extern IntPtr GetClassLongPtr64(IntPtr hWnd, ClassLongFlags flags);
public static IntPtr SetClassLongPtr(IntPtr hwnd, ClassLongFlags nIndex, IntPtr dwNewLong) { return(User32Methods.SetClassLongPtr(hwnd, (int)nIndex, dwNewLong)); }
public static extern IntPtr SetClassLong64(IntPtr hWnd, ClassLongFlags nIndex, IntPtr dwNewLong);
public static extern IntPtr GetClassLong64(IntPtr hwnd, ClassLongFlags nIndex);
private static extern IntPtr SetClassLongPtr64(IntPtr hWnd, ClassLongFlags nIndex, IntPtr dwNewLong);
public static IntPtr SetClassLong(IntPtr hWnd, ClassLongFlags nIndex, IntPtr dwNewLong) { return(Is64Bit ? SetClassLongPtr64(hWnd, nIndex, dwNewLong) : SetClassLongPtr32(hWnd, nIndex, dwNewLong)); }
public static IntPtr GetClassLongPtr(IntPtr hWnd, ClassLongFlags flags) { return IntPtr.Size > 4 ? GetClassLongPtr64(hWnd, flags) : new IntPtr(GetClassLongPtr32(hWnd, flags)); }
public static extern IntPtr GetClassLong64(IntPtr hwnd, ClassLongFlags nIndex);
public static extern uint GetClassLongPtr32(IntPtr hWnd, ClassLongFlags flags);
public static extern IntPtr SetClassLong64(IntPtr hWnd, ClassLongFlags nIndex, IntPtr dwNewLong);
public static IntPtr GetClassLongPtr(IntPtr hwnd, ClassLongFlags nIndex) { return(User32Methods.GetClassLongPtr(hwnd, (int)nIndex)); }