/// <summary> /// Sets information about the specified window /// </summary> /// <param name="hWnd">A handle to the window and, indirectly, the class to which the window belongs.</param> /// <param name="nIndex">The zero-based offset to the value to be retrieved. /// Valid values are in the range zero through the number of bytes of extra window memory, minus four; /// for example, if you specified 12 or more bytes of extra memory, a value of 8 would be an index to the third 32-bit integer. /// To retrieve any other value, specify one of the WindowLongs values.</param> /// <param name="newValue">The replacement value.</param> /// <returns>If the function succeeds, the return value is the previous value of the value offset. If teh function fails, the return value is zero.</returns> public static int SetLong(IntPtr hWnd, WindowsLongs nIndex, uint newValue) { return(NativeMethods.SetLong(hWnd, nIndex, newValue)); }
public static extern int SetLong(IntPtr hWnd, WindowsLongs nIndex, uint dwNewLong);
/// <summary> /// Retrieves information about the specified window. The function also retrieves the 32-bit (DWORD) value at the specified offset into the extra window memory. /// </summary> /// <param name="hWnd">A handle to the window and, indirectly, the class to which the window belongs.</param> /// <param name="nIndex">The zero-based offset to the value to be retrieved. /// Valid values are in the range zero through the number of bytes of extra window memory, minus four; /// for example, if you specified 12 or more bytes of extra memory, a value of 8 would be an index to the third 32-bit integer. /// To retrieve any other value, specify one of the WindowLongs values.</param> /// <returns>If the function succeeds, the return value is the requested value. If the function fails, the return value is zero.</returns> public static uint GetLong(IntPtr hWnd, WindowsLongs nIndex) { return(NativeMethods.GetLong(hWnd, nIndex)); }
public static extern uint GetLong(IntPtr hWnd, WindowsLongs nIndex);