home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
tmp9
/
modetst.c
< prev
next >
Wrap
C/C++ Source or Header
|
1997-02-23
|
510b
|
28 lines
#define INCL_NOPM
#define INCL_VIO
#define INCL_ERRORS
#define INCL_DOSFILEMGR
#define INCL_DOSMISC
#define INCL_DOSPROCESS
#define INCL_DOSSEMAPHORES
#define INCL_DOSDEVIOCTL
#define INCL_WINCLIPBOARD
#include <os2.h>
#include <stdio.h>
int main( void )
{
USHORT rc = 0 ;
VIOMODEINFO mi;
mi.cb = sizeof(mi) ;
VioGetMode( &mi, 0 ) ;
printf("\ncol = %d\n",mi.col);
printf("row = %d\n",mi.row);
printf("hres = %d\n",mi.hres);
printf("vres = %d\n\n",mi.vres);
return 0 ;
}