[Overview][Constants][Types][Procedures and functions][Variables][Index] | Reference for unit 'go32' (#rtl)

# get_run_mode

Return current run mode

## Declaration

Source position: go32.pp line 158

`function get_run_mode: Word;`

## Description

Returns the current mode your application runs with.

Return values: One of the constants used by this function.

## Errors

None.

## See also

get_run_mode |  | Return current run mode

## Example

    uses
            go32;

    begin
            case (get_run_mode) of
                    rm_unknown :
                            Writeln('Unknown environment found');
                    rm_raw     :
                            Writeln('You are currently running in raw mode ',
                                    '(without HIMEM)');
                    rm_xms     :
                            Writeln('You are currently using HIMEM.SYS only');
                    rm_vcpi    :
                            Writeln('VCPI server detected. You''re using HIMEM and ',
                                    'EMM386');
                    rm_dpmi    :
                            Writeln('DPMI detected. You''re using a DPMI host like ',
                                    'a windows DOS box or CWSDPMI');
            end;
    end.

Documentation generated on: Feb 26 2014