--- os2sdk/demos/examples/config/config.c 2018/08/09 12:25:13 1.1 +++ os2sdk/demos/examples/config/config.c 2018/08/09 12:26:23 1.1.1.2 @@ -1,29 +1,32 @@ /* - * Example of DOSDEVCONFIG usage + * Example of DosDevConfig usage * * This calls gets information about the attached devices. This * program works in Family API mode. * * Compile as: cl -AL -Lp -G0 config.c * - * Copyright (C) Microsoft Corp. 1986 + * Created by Microsoft Corp. 1986 */ -#include +#define INCL_DOSDEVICES + +#include +#include main() { - unsigned char DeviceInfo[10]; /* Buffer to put information into */ - unsigned int Item; /* Item number */ - unsigned int Parm = 0; /* RESERVED: must be zero */ + UCHAR DeviceInfo[10]; /* Buffer to put information into */ + USHORT Item; /* Item number */ + USHORT Parm = 0; /* RESERVED: must be zero */ /* Check number of RS232 cards attached */ Item = 1; - DOSDEVCONFIG(DeviceInfo, Item, Parm); + DosDevConfig(DeviceInfo, Item, Parm); printf("%d RS232 adapter(s) installed.\n", (int)DeviceInfo[0]); /* Check number of diskette drives */ Item = 2; - DOSDEVCONFIG(DeviceInfo, Item, Parm); + DosDevConfig(DeviceInfo, Item, Parm); printf("%d diskette drive(s) installed.\n", (int)DeviceInfo[0]); }