|
|
Microsoft OS/2 SDK 03-01-1988
/*
* machmode.c - Print current machine mode
*
* This program illustrates the DosGetMachineMode call.
*
* Compile as: cl -AL -G0 -Lp machmode.c
*
* Created by Microsoft Corp. 1986
*/
#define INCL_DOSMISC
#include <os2def.h>
#include <bsedos.h>
main()
{
BYTE machineMode;
DosGetMachineMode(&machineMode);
printf("Machine Mode is %s\n", machineMode ? "protected" : "real");
}
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.