Exemplo n.º 1
0
 public static NativeWindowStyle SetWindowLong(IntPtr hWnd, GWL nIndex, NativeWindowStyle dwNewLong) =>
 (NativeWindowStyle)(IntPtr.Size == 8 ?
                     GetWindowArchSpecific.SetWindowLongPtr64(hWnd, nIndex, new IntPtr((uint)dwNewLong)) :
                     new IntPtr(GetWindowArchSpecific.SetWindowLong32(hWnd, nIndex, (uint)dwNewLong)));
Exemplo n.º 2
0
 public static NativeWindowStyle GetWindowLong(IntPtr hWnd, GWL nIndex) =>
 (NativeWindowStyle)(IntPtr.Size == 8 ?
                     GetWindowArchSpecific.GetWindowLongPtr64(hWnd, nIndex) :
                     GetWindowArchSpecific.GetWindowLongPtr32(hWnd, nIndex));