status.i4.v = window_query_scroll(window_id.i2.r [,scroll_bar.i4.r]
					  [,top_row.i4.r] [,scroll_limit.i4.r]
					  [,scroll_io.i4.r] [,scroll_save.i4.r]
					  [,hscroll_bar.i4.r] [,cols_left.i4.r]

	status.i4.v = window_query_scroll_c(window_id.i2.v [,scroll_bar.i4.r]
					    [,top_row.i4.r] [,scroll_limit.i4.r]
					    [,scroll_io.i4.r] [,scroll_save.i4.r]
					    [,hscroll_bar.i4.r] [,cols_left.i4.r]

	This routine allows the programmer to read information concerning
	a window's scroll status.  The default value for all optional
	arguments is NULL.  A value of NULL may be passed for any of the
	arguments for which no returned value is desired.

	window_id	window ID (use WMNGR_BACKGROUND for background window)
	[scroll_bar]	returned flag indicating the presence or absence
			of a vertical scroll bar
			(TRUE -> vertical scroll bar present,
			 FALSE -> vertical scroll bar not present)
	[lines_above]	returned number of lines above the visible window
	[lines_below]	returned number of lines below the visible window
	[lines_visible]	returned number of scroll lines in the visible window
	[top_row]	returned top row of visible scroll region
	[scroll_limit]	returned maximum number of lines that can be
			maintained in the window's scroll buffer
	[scroll_io]	returned scroll buffer I/O flag
			(TRUE -> scroll buffer I/O is enabled,
			 FALSE -> scroll buffer I/O is disabled)
	[scroll_save]	returned scroll buffer save flag
			(TRUE -> save text scrolled out of the visible window,
			 FALSE -> don't save scrolled text)
	[scroll_status]	returned scroll status display flag
			(WMNGR_NO_DISPLAY -> no scroll status display,
			 WMNGR_DISPLAY_WHEN_NEEDED -> display scroll status
						      only when there is text
						      in the scroll buffer,
			 WMNGR_DISPLAY_ALWAYS -> always display the scroll
						 buffer status)
	[hscroll_bar]	returned flag indicating the presence or absence
			of a horizontal scroll bar
			(TRUE -> horizontal scroll bar present,
			 FALSE -> horizontal scroll bar not present)
	[cols_left]	returned number of columns to the left of the
			visible window
	[cols_visible]	returned number of scroll columns in the visible window
	[left_column]	returned left column of visible scroll region

	This function returns ACNET status values as follows:

	OK			success
	CBS_INVARG		invalid window ID was specified
	CBS_NO_WINDOW		window doesn't exist
	CBS_MEMFAIL		dynamic memory allocation failure

	This function requires the following include files:

	cnsparam_h, cbslib_h, acnet_errors_h

	Related functions:

	window_construct(_c), window_scroll_offset_c, window_scroll(_c),
	window_set_scroll_region_c, window_set_scroll_limit_c,
	window_enable_scroll_io_c, window_disable_scroll_io_c,
	window_enable_scroll_save_c, window_disable_scroll_save_c,
	window_enable_scroll_status_c, window_total_lines_c, window_hscroll_c,

	C/C++ usage:

	short	window_id;
	int	status;
	int	scroll_bar;
	int	lines_above;
	int	lines_below;
	int	lines_visible;
	int	top_row;
	int	scroll_limit;
	int	scroll_io;
	int	scroll_save;
	int	scroll_status;
	int	hscroll_bar;
	int	cols_left;
	int	cols_visible;
	int	left_column;

	status = window_query_scroll_c(window_id,&scroll_bar,&lines_above,