--- os2sdk/demos/examples/version/version.c 2018/08/09 12:25:13 1.1.1.1 +++ os2sdk/demos/examples/version/version.c 2018/08/09 12:26:24 1.1.1.2 @@ -1,22 +1,24 @@ /* - * Example of DOSGETVERSION usage + * Example of DosGetVersion usage * * This program gets the DOS version and revision numbers. * It works as a Family API Program. * * Compile as: cl -AL -Lp -G0 version.c * - * Copyright (C) Microsoft Corp. 1986 + * Created by Microsoft Corp. 1986 */ -#include +#include +#define INCL_DOSMISC +#include main() { - unsigned int VersionWord; - unsigned int major, minor; + USHORT VersionWord; + USHORT major, minor; - DOSGETVERSION(&VersionWord); /* Call DOS to get the version */ + DosGetVersion(&VersionWord); /* Call DOS to get the version */ major = VersionWord >> 8; /* High byte is major version */ minor = VersionWord & 0xff; /* Low byte is minor revision */