home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / k95source / modetst.c < prev    next >
C/C++ Source or Header  |  2020-01-01  |  510b  |  28 lines

  1. #define INCL_NOPM
  2. #define INCL_VIO
  3. #define INCL_ERRORS
  4. #define INCL_DOSFILEMGR
  5. #define INCL_DOSMISC
  6. #define INCL_DOSPROCESS
  7. #define INCL_DOSSEMAPHORES
  8. #define INCL_DOSDEVIOCTL
  9. #define INCL_WINCLIPBOARD
  10. #include <os2.h>
  11. #include <stdio.h>
  12.  
  13. int main( void )
  14. {
  15.     USHORT rc = 0 ;
  16.     VIOMODEINFO mi;
  17.  
  18.     mi.cb = sizeof(mi) ;
  19.     VioGetMode( &mi, 0 ) ;
  20.  
  21.     printf("\ncol = %d\n",mi.col);
  22.     printf("row = %d\n",mi.row);
  23.     printf("hres = %d\n",mi.hres);
  24.     printf("vres = %d\n\n",mi.vres);
  25.  
  26.     return 0 ;
  27. }
  28.