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

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:  *
1.1.1.2 ! root        8:  * Created by Microsoft Corp. 1986
1.1       root        9:  */
                     10: 
1.1.1.2 ! root       11: #define INCL_DOSMISC
        !            12: 
        !            13: #include <os2def.h>
        !            14: #include <bsedos.h>
1.1       root       15: 
                     16: main()
                     17: {
1.1.1.2 ! root       18:        BYTE machineMode;
1.1       root       19: 
1.1.1.2 ! root       20:        DosGetMachineMode(&machineMode);
1.1       root       21: 
                     22:        printf("Machine Mode is %s\n", machineMode ? "protected" : "real");
                     23: }

unix.superglobalmegacorp.com

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