--- os2sdk/demos/examples/machmode/machmode.c 2018/08/09 12:25:13 1.1 +++ os2sdk/demos/examples/machmode/machmode.c 2018/08/09 12:26:11 1.1.1.2 @@ -5,16 +5,19 @@ * * Compile as: cl -AL -G0 -Lp machmode.c * - * Copyright (C) Microsoft Corp. 1986 + * Created by Microsoft Corp. 1986 */ -#include +#define INCL_DOSMISC + +#include +#include main() { - char machineMode; + BYTE machineMode; - DOSGETMACHINEMODE(&machineMode); + DosGetMachineMode(&machineMode); printf("Machine Mode is %s\n", machineMode ? "protected" : "real"); }