Purpose
DosQueryABIOSSupport returns flags that indicate various basic hardware configurations.
Syntax
#define INCL_DOSMODULEMGR #include os2.h>
APIRET APRENTRY DosQueryABIOSSupport
Parameters
reserved (ULONG) input
The following flags are returned
HW_CFG_MCA
Example Code
int main(int argc, char *argv[], char *envp[]){ APIRET flags; flags = DosQueryABIOSSupport(0L); printf("H/W config %08x\n",flags); if (flags HW_CFG_MCA) printf(" 0x01 => MCA Bus\n"); if (flags HW_CFG_EISA) printf(" 0x02 => EISA Bus\n"); if (flags HW_CFG_ABIOS_SUPPORTED) printf(" 0x04 => ABIOS Supported\n"); if (flags HW_CFG_ABIOS_PRESENT) printf(" 0x08 => ABIOS Present\n"); if (flags HW_CFG_PCI) printf(" 0x10 => PCI Bus\n"); if (flags HW_CFG_OEM_ABIOS) printf(" 0x20 => OEM ABIOS\n"); if (flags HW_CFG_PENTIUM_CPU) printf(" 0x40 => Pentium or Higher CPU\n"); return 0; }