File:  [OS/2 SDKs] / os2sdk / demos / examples / machmode / machmode.c
Revision 1.1.1.2 (vendor branch): download - view: text, annotated - select for diffs
Thu Aug 9 12:26:11 2018 UTC (7 years, 9 months ago) by root
Branches: msft, MAIN
CVS tags: os2sdk-1988, HEAD
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");
}

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.