Annotation of os2sdk/demos/examples/machmode/machmode.c, revision 1.1

1.1     ! root        1: /*
        !             2:  * machmode.c - Print current machine mode
        !             3:  *
        !             4:  * This program illustrates the DosGetMachineMode call.
        !             5:  *
        !             6:  * Compile as: cl -AL -G0 -Lp machmode.c
        !             7:  *
        !             8:  * Copyright (C) Microsoft Corp. 1986
        !             9:  */
        !            10: 
        !            11: #include <doscalls.h>
        !            12: 
        !            13: main()
        !            14: {
        !            15:        char machineMode;
        !            16: 
        !            17:        DOSGETMACHINEMODE(&machineMode);
        !            18: 
        !            19:        printf("Machine Mode is %s\n", machineMode ? "protected" : "real");
        !            20: }

unix.superglobalmegacorp.com

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