## Display Device Driver Reference for OS/2

[prev][next][parent][TOC]

### ADAPTERINFO

The ADAPTERINFO data structure receives information for the current video adapter.

    typedef struct _ADAPTERINFO {

      ULONG      cb;                           /*  Length of the structure. */

      ULONG      ulAdapterID;                  /*  Specifies the adapter by ID. */

      CHAR       szOEMString[MAX_OEM_STRING];  /*  Contains adapter information. */

      CHAR       szDACString[MAX_DAC_STRING];  /*  Contains DAC information. */

      CHAR       szRevision[MAX_VERSION];      /*  Contains version information. */

      ULONG      ulTotalMemory;                /*  Total video memory. */

      ULONG      ulMMIOBaseAddress;            /*  Base address for memory-mapped I/O registers. */

      ULONG      ulPIOBaseAddress;             /*  Base address for I/O ports. */

      BYTE       bBusType;                     /*  Type of bus (PCI, VLB, and so on.) */

      BYTE       bEndian;                      /*  Big Endian or little Endian. */

      USHORT     usDeviceBusID;                /*  Reserved. */

      USHORT     usVendorBusID;                /*  Reserved. */

      USHORT     usSlotID;                     /*  Reserved. */

    } ADAPTERINFO;

    typedef   ADAPTERINFO   * FAR   * PADAPTERINFO ;