🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.os.os2.programmer
1 messages
1 total messages Started by Harald Boegeholz Sun, 12 Apr 1992 20:27
VioGetConfig returns undocumented values under GA
#734
Author: Harald Boegeholz
Date: Sun, 12 Apr 1992 20:27
43 lines
1846 bytes
Hello!


Since I switched to OS/2 2.0 GA, dviscr from the emTeX package doesn't
work any more.

The problem seems to be the return value of VioGetConfig. The little
Program below returns adapter=8 and display=13 on my machine (running
full screen). These values are not documented, at least not in any
documentation I have available.

My hardware: ALR PowerVEISA 486/25, Video7 VRAM VGA etc.

Does anybody have any documentation about these values of adapter and
display? Or any other values I don't know yet? My docs mention adapter
values 0,1,2,3,7 and display values 0,1,2,3,4,9.

Please post or mail if the test program below returns any different
values on your machine!


Harald
------------------------------------------------------------------------
#define INCL_VIO
#include <os2.h>

void main(void)
{
  VIOCONFIGINFO vioinConfig;
  vioinConfig.cb = sizeof(vioinConfig);     /* structure length   */
  VioGetConfig(0,
      &vioinConfig,                         /* configuration data */
      0);                                   /* video handle       */

  printf("VioGetConfig returned adapter=%d, display=%d.\n",
         vioinConfig.adapter, vioinConfig.display);
}


--
Harald Boegeholz |Home:       hwb@texnix.stgt.sub.org (read daily)
                 |University: hwb@phoebus.mathematik.uni-stuttgart.de
                 |please don't send large (>100k) mail to my home address.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads