home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Beijing Paradise BBS Backup
/
PARADISE.ISO
/
software
/
BBSDOORW
/
UUPC11XS.ZIP
/
LIB
/
SCRSIZNT.C
< prev
next >
Wrap
C/C++ Source or Header
|
1992-12-05
|
1KB
|
39 lines
/*--------------------------------------------------------------------*/
/* System include files */
/*--------------------------------------------------------------------*/
#include <stdio.h>
#include <windows.h>
/*--------------------------------------------------------------------*/
/* UUPC/extended include files */
/*--------------------------------------------------------------------*/
#include "lib.h"
#include "scrsize.h"
/*--------------------------------------------------------------------*/
/* s c r s i z e */
/* */
/* Return screen size under Windows/NT */
/*--------------------------------------------------------------------*/
short scrsize( void )
{
CONSOLE_SCREEN_BUFFER_INFO info;
BOOL result;
HANDLE hStdout = GetStdHandle(STD_OUTPUT_HANDLE);
result = GetConsoleScreenBufferInfo(hStdout, &info);
if ( result != 0 )
{
printmsg(0,"Windows/NT error code %d retrieving console information",
GetLastError() );
return PAGESIZE;
}
return info.dwSize.Y;
} /* scrsize */