KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q27804: The struct videoconfig Declaration

Article: Q27804
Product(s): See article
Version(s): 5.00 5.10
Operating System(s): MS-DOS
Keyword(s): ENDUSER | docerr | mspl13_c
Last Modified: 26-SEP-1988

Page 342 of the "Microsoft C Run-Time Library Reference" manual for
Version 5.00 has an omission. The struct videoconfig declaration
member list leaves out the following four lines: mode, adaptor,
monitor, and memory.

The following is the structure as shown in the manual (incorrect):

struct videoconfig {
  short numxpixels;   /* number of pixels on X axis */
  short numypixels;   /* number of pixels on Y axis */
  short numtextcols;  /* number of text columns available */
  short numtextrows;  /* number of text rows available */
  short numcolors;    /* number of actual colors */
  short bitsperpixel; /* number of bits per pixel */
  short numvideopages;/* number of available video pages */
}

The following is the structure as defined in GRAPH.H (correct):

struct videoconfig {
  short numxpixels;   /* number of pixels on X axis */
  short numypixels;   /* number of pixels on Y axis */
  short numtextcols;  /* number of text columns available */
  short numtextrows;  /* number of text rows available */
  short numcolors;    /* number of actual colors */
  short bitsperpixel; /* number of bits per pixel */
  short numvideopages;/* number of available video pages */
  short mode;         /* current video mode */
  short adapter;      /* active display adapter */
  short monitor;      /* active display monitor */
  short memory;       /* adapter video memory in K bytes */
}

THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Copyright Microsoft Corporation 1986-2002.