|
|
Microsoft OS/2 SDK 03-01-1988
/*
* 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
*
* Created by Microsoft Corp. 1986
*/
#include <os2def.h>
#define INCL_DOSMISC
#include <bsedos.h>
main()
{
USHORT VersionWord;
USHORT major, minor;
DosGetVersion(&VersionWord); /* Call DOS to get the version */
major = VersionWord >> 8; /* High byte is major version */
minor = VersionWord & 0xff; /* Low byte is minor revision */
printf("Version %d.%d\n", major, minor);
}
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.