AdvancedLauncher.Tools.NativeMethods.SetWindowLongPtr C# (CSharp) Метод

SetWindowLongPtr() публичный статический Метод

public static SetWindowLongPtr ( HWND hwnd, GWL nIndex, IntPtr dwNewLong ) : IntPtr
hwnd AdvancedLauncher.Tools.Win32.User32.HWND
nIndex GWL
dwNewLong System.IntPtr
Результат System.IntPtr
        public static IntPtr SetWindowLongPtr(HWND hwnd, GWL nIndex, IntPtr dwNewLong)
        {
            if (IntPtr.Size == 4) {
                // The SetWindowLongPtr entrypoint may not exist on 32-bit
                // OSes, so use the legacy SetWindowLong function instead.
                return new IntPtr(SetWindowLong(hwnd, nIndex, dwNewLong.ToInt32()));
            } else {
                return _SetWindowLongPtr(hwnd, nIndex, dwNewLong);
            }
        }