home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional / OS2PRO194.ISO / os2 / info / faq / os2_20 / os2help / dosset1.fax < prev    next >
Encoding:
Text File  |  1993-06-21  |  48.2 KB  |  867 lines

  1. ┌───────────────────────────────────────────────────────────────────────────┐
  2. │                          OS/2 2.0 Technical Tips                          │
  3. │                                 From the                                  │
  4. │                        OS/2 Technical Support Team                        │
  5. │                            Boca Raton, Florida                            │
  6. │                                                                           │
  7. ├───────────────────┬─────────────────────────────────────┬─────────────────┤
  8. │    File Name      │   Description                       │ Number of pages │
  9. ├───────────────────┼─────────────────────────────────────┼─────────────────┤
  10. │ DOSSET.FAX        │ OS/2 DOS Settings for VDMs          │      14         │
  11. └───────────────────┴─────────────────────────────────────┴─────────────────┘
  12.  
  13.  
  14. STANDARD DOS SETTINGS
  15. ---------------------
  16.  
  17.    The following is an excerpt from Chapter 11 of the IBM OS/2 Version 2.0
  18.    Technical Redbooks, Volume 2:  DOS and Windows Environment (Document
  19.    Number GG24-3731-00), published by the IBM Corporation.
  20.  
  21.    This document describes the DOS Settings in an OS/2 Virtual Dos Machine.
  22.  
  23.  
  24.  COM_HOLD
  25.    Function:    When  set  on, provides exclusive access to COM ports for the
  26.                 specified VDM, preventing other processes from using the port
  27.                 and preventing the operating system from releasing  the  port
  28.                 until the VDM terminates.
  29.    Advantages:  For  certain  applications  which  use  COM  ports  and which
  30.                 require  multiple  programs  to  access  the  COM  port  (for
  31.                 example,  this  setting  prevents  the  COM  port  from being
  32.                 released when the first program terminates).
  33.    Drawbacks:   If not required by the application running  in  a  VDM,  this
  34.                 setting  may  prevent  other  applications from accessing COM
  35.                 ports.
  36.    Default:     Off.
  37.    Settable:    At VDM creation only.
  38.    Examples:    Certain bulletin board applications use one program  to  dial
  39.                 the BBS and another to exchange information; setting COM_HOLD
  40.                 on  prevents the operating system from releasing the COM port
  41.                 when the first program terminates.
  42.  
  43.  DOS_BACKGROUND_EXECUTION
  44.    Function:    When set off, suspends execution of the program when it is in
  45.                 the background.
  46.    Advantages:  Many DOS applications are written on the assumption that they
  47.                 are  single  tasking  and  that  all  the  resources  of  the
  48.                 workstation can be monopolized.  It is not uncommon    for  a
  49.                 DOS  program to continually poll for keyboard input (Examples
  50.                 are WordPerfect 5.1 and Lotus 1-2-3 R2.2).  In a multitasking
  51.                 environment, this can impact system  performance,  especially
  52.                 when  more than one such program is running.  Turning the DOS
  53.                 application off when  its  virtual  DOS  machine  is  in  the
  54.                 background reduces its demands on the system.
  55.  
  56.                 Also    see    "IDLE_SENSITIVITY"   in   and "IDLE_SECONDS"
  57.  
  58.    Drawbacks:   Communications programs will fail if background execution  is
  59.                 turned off, as will DDE for Windows applications.
  60.  
  61.                 Try  changing the values of IDLE_SECONDS and IDLE_SENSITIVITY
  62.                 before turning DOS_BACKGROUND_EXECUTION off.
  63.    Default:     On (Background execution is enabled).
  64.    Settable:    At any time.
  65.    Examples:    If more than two DOS programs are  running  and  tuning  with
  66.                 IDLE_SENSITIVITY and IDLE_SECONDS does not provide sufficient
  67.                 improvement,  turn DOS_BACKGROUND_EXECUTION off for the least
  68.                 used application.
  69.  
  70.  DOS_BREAK
  71.    Function:    Enables  or  disables Ctrl+Break for the specified VDM.  Also
  72.                 check for  the  BREAK  statement  in  the  CONFIG.SYS.    Set
  73.                 BREAK=ON  in  the  CONFIG.SYS  to  make Ctrl+Break and Ctrl+C
  74.                 working in addition to setting DOS_BREAK on.
  75.    Advantages:  Enables  a  DOS  application  running  in  the  VDM   to   be
  76.                 interrupted using the Ctrl+Break or Ctrl+C key sequences.
  77.    Drawbacks:   This setting is useful only if an application must be quickly
  78.                 interrupted;  the  user may easily terminate a VDM by closing
  79.                 it from the Window List.
  80.    Default:     Off (Ctrl+Break is disabled).
  81.    Settable:    At VDM creation only.
  82.    Examples:    If the user wishes to have the  option  to  interrupt  a  DOS
  83.                 batch  file  running  in  a virtual DOS machine, this setting
  84.                 should be turned on.
  85.  
  86.  DOS_DEVICE
  87.    Function:    This  setting  can be used to add or modify information about
  88.                 DOS device drivers for the specified VDM, in addition to  the
  89.                 information specified in CONFIG.SYS.
  90.    Default:     When  this  setting  is  selected,  a list is displayed which
  91.                 contains information about each DOS device  driver  specified
  92.                 in CONFIG.SYS.  The information consists of the path and file
  93.                 name of each DOS device driver and its current parameters, if
  94.                 applicable.  For example:
  95.  
  96.                   c:\os2\mdos\ansi.sys
  97.  
  98.                 The user may:
  99.                 -   Type  the  name  of a DOS device driver to add it. Typing
  100.                     should begin on a new line.
  101.                 -   Delete all the  information  about  a  device  driver  to
  102.                     remove it.
  103.                     remove it.
  104.                 -   Type or delete to add, change, or delete a value.
  105.    Settable:    At VDM creation only.
  106.    Examples:    A program to support hardware such as a scanner may include a
  107.                 device  driver  that  is  needed  only for itself. The device
  108.                 driver should be loaded with the DOS_DEVICE  setting  instead
  109.                 of in the CONFIG.SYS.
  110.  
  111.  DOS_FCBS
  112.    Function:    Specifies  the  maximum  number of file control blocks (FCBs)
  113.                 which may be opened by applications running in the VDM.  Note
  114.                 that this  setting  affects  only  those  modules  which  use
  115.                 file-sharing.
  116.    Advantages:  Reducing this setting may improve DOS application performance
  117.                 in  a  resource-constrained networking environment.  When the
  118.                 maximum number of FCBs is opened by an application, the least
  119.                 recently used FCB is closed to allow additional files  to  be
  120.                 opened; see DOS_FCBS_KEEP below.
  121.    Drawbacks:   Reducing  this  setting  to  an  excessively  low  number may
  122.                 inhibit the  performance  of  applications  which  use  large
  123.                 numbers  of  files.    Check  application  documentation  for
  124.                 recommended FCB settings.
  125.    Default:     16.
  126.    Settable:    At VDM creation only.
  127.    Examples:    None.
  128.  
  129.  DOS_FCBS_KEEP
  130.    Function:    Specifies  the  number of FCBs that will be protected against
  131.                 automatic closure.
  132.    Advantages:  If this setting is specified as "n," the first  "n" files are
  133.                 protected  against  automatic   closure   as   described   in
  134.                 "DOS_FCBS"  in topic 11.2.2.4.   This may improve application
  135.                 performance.
  136.    Default:     8.
  137.    Settable:    At VDM creation only.
  138.    Examples:    None.
  139.  
  140.  DOS_FILES
  141.    Function:    Specifies  the  maximum  number  of file handles which may be
  142.                 opened in a VDM.
  143.    Advantages:  Setting this  value  higher  than  the  default  may  improve
  144.                 performance  for  applications  which  use  a large number of
  145.                 files.    Check  application  documentation  for  recommended
  146.                 settings.
  147.    Drawbacks:   Setting  the  number  of  file  handles higher than necessary
  148.                 reduces the available memory.
  149.    Default:     20.
  150.    Settable:    At any time.
  151.    Examples:    DBASE IV requires a DOS_FILES setting of at least 40.
  152.  
  153.  DOS_HIGH
  154.    Function:    Determines whether DOS is loaded outside the 640KB low memory
  155.                 address space.
  156.    Advantages:  Loading DOS into high memory allows more available memory for
  157.                 application code and data within the 640KB address space.
  158.    Drawbacks:   Applications  which  require  access  to DOS internal control
  159.                 structures require DOS to be  loaded  into  low  memory,  and
  160.                 therefore cannot use this setting.
  161.    Default:     Off (DOS is loaded into low memory).
  162.    Settable:    At VDM creation only.
  163.    Examples:    None.
  164.  
  165.  DOS_LASTDRIVE
  166.    Function:    Specifies  the highest available logical drive letter for the
  167.                 specified VDM.   This setting is similar  to  the  LASTDRIVE=
  168.                 statement in a DOS CONFIG.SYS.
  169.    Default:     Z.
  170.    Settable:    At VDM creation only.
  171.    Examples:    Each  additional  drive  letter uses about 100 bytes. Setting
  172.                 the LAST_DRIVE to a lower letter such as J or K provides more
  173.                 conventional memory for an application.
  174.  
  175.  DOS_RMSIZE
  176.    Function:    Specifies  the DOS memory size.  This is the amount of memory
  177.                 which is available to DOS applications.
  178.    Advantages:  The virtual video device driver uses this setting on  certain
  179.                 video adapters to set even more than 640KB.
  180.    Drawbacks:   This  setting  is  of little use to most users as there is no
  181.                 point specifying less than 640KB.
  182.    Default:     The default is 640KB.
  183.    Settable:    At VDM creation only.
  184.    Examples:    None.
  185.  
  186.  DOS_SHELL
  187.    Function:    To specify the DOS command processor, or to add parameters to
  188.                 affect the command processor.  This setting points by default
  189.                 to COMMAND.COM.  If a user has a different command processor,
  190.                 it should be specified here.
  191.    Advantages:  The  user  may  specify  a  command  processor other than the
  192.                 default   COMMAND.COM,   if   required   by   a   specialized
  193.                 application, or may alter the environment space available for
  194.                 the VDM.
  195.    Default:     C:\OS2\MDOS\COMMAND.COM C:\OS2\MDOS /P
  196.    Settable:    At VDM creation only.
  197.  
  198.  
  199.  DOS_STARTUP_DRIVE
  200.    Function:    Specifies  the  location  of the DOS kernel to be loaded into
  201.                 the VDM.
  202.    Advantages:  Allows specific versions of DOS to be loaded into a VDM using
  203.                 the VMB facility, allowing the execution of version-dependent
  204.                 DOS applications.
  205.    Drawbacks:   Performance may not be as good as the VDM  kernel,  which  is
  206.                 optimized for the OS/2 V2.0 environment.
  207.    Default:     The DOS Emulation kernel is loaded.
  208.    Settable:    At VDM creation only.
  209.    Examples:    See Chapter 12, "Virtual Machine Boot."
  210.  
  211.  DOS_UMB
  212.    Function:    Specifies  whether  DOS  owns  Upper Memory Blocks (UMBs) and
  213.                 manages the loading of device drivers and TSR programs.
  214.    Advantages:  Setting DOS_UMB on allows use of the DEVICEHIGH= and LOADHIGH
  215.                 statements, to load device  drivers  and  TSR  programs  into
  216.                 Upper  Memory  Blocks, thereby preserving space in low memory
  217.                 for use by applications.
  218.    Drawbacks:   Certain applications which make use of UMBs  need  to  access
  219.                 and  manage the UMBs directly; such applications will not run
  220.                 when DOS_UMB is set on, because DOS owns the UMBs.
  221.    Default:     Off (UMBs are owned by certain types of TSR programs and  DOS
  222.                 device drivers if necessary).
  223.  
  224.    Settable     At VDM creation only.
  225.    Examples:    None.
  226.  
  227.  DOS_VERSION
  228.    Function:    Allows  the  operating  system to report a "fake" DOS version
  229.                 number in response to a request from a program in the VDM, in
  230.                 order to support applications which check for a  DOS  version
  231.                 number.
  232.    Advantages:  Allows some programs that will not start unless they detect a
  233.                 prerequisite DOS version to run in DOS Emulation
  234.    Default:     20
  235.    Settable:    Before application initiation.
  236.    Examples:    Lotus  1-2-3  R3+ will run in DOS Emulation if it is "fooled"
  237.                 into thinking that it is running under DOS 3.3 by putting the
  238.                 following lines into the DOS_Version list box:
  239.                 -   123DOS.EXE,3,30,255
  240.                 -   123.EXE,3,30,255
  241.                 -   LOTUS.EXE,3,30,255
  242.  
  243.  DPMI_DOS_API
  244.    Function:    Determines  whether  DOS  API  translation is enabled for the
  245.                 specified VDM.
  246.    Default:     AUTO (API translation is enabled if required).
  247.  
  248.    Settable     At VDM creation only.
  249.    Examples:    None.
  250.  
  251.  DPMI_MEMORY_LIMIT
  252.    Function:    Specifies  the  maximum  amount  of protected mode memory (in
  253.                 megabytes) available to DPMI applications running in the VDM.
  254.    Advantages:  For applications which require large amounts of DPMI  memory,
  255.                 this  setting may be used to increase the amount of available
  256.                 memory up to 512MB.
  257.    Default:     2MB.
  258.  
  259.    Settable     At VDM creation only.
  260.    Examples:    None.
  261.  
  262.  DPMI_NETWORK_BUFF_SIZE
  263.    Function:    Specifies  the  size,  in  kilobytes  (KB),  of  the  network
  264.                 translation buffer for DPMI programs in this  session.    The
  265.                 range is from 1 to 64 KB.
  266.    Default:     8KB.
  267.  
  268.    Settable     At VDM creation only.
  269.    Examples:    This  setting  allows  you  to  configure  the  size  of  the
  270.                 translation buffer for Windows programs  that  transfer  data
  271.                 over  a network.   If a network-specific Windows program does
  272.                 not run correctly under OS/2  V2.0,  increase  this  setting,
  273.                 then restart  the session.
  274.  
  275.  EMS_FRAME_LOCATION
  276.    Function:    This DOS setting allows you to change the location of the LIM
  277.                 EMS  region.   LIM EMS uses a 64KB address region known as an
  278.                 EMS page frame, through which programs  can  access  expanded
  279.                 memory.    (This  allows  programs  to use more than 640KB of
  280.                 memory.)
  281.    Advantages:  If a user has problems when running a program that uses  both
  282.                 a  hardware  device  and LIM EMS expanded memory, the problem
  283.                 may be due to conflicting use of addresses by LIM EMS and the
  284.                 hardware device.  If this occurs, the user should  first  use
  285.                 the  EMS_HIGH_OS_MAP_REGION  setting to set the extra address
  286.                 region used by EMS to 0.  This may solve the problem.  If the
  287.                 problem persists, the EMS_FRAME_LOCATION setting can be  used
  288.                 to select a 64KB region that does not conflict with hardware.
  289.  
  290.                 The  user  can choose where to place the frame from a list of
  291.                 choices or can choose to have no EMS frame for programs which
  292.                 do not require a frame.   The user can also  reduce  the  DOS
  293.                 Memory Size setting and place the frame below 640KB.
  294.    Drawbacks:   The  best  solution,  when problems due to hardware conflicts
  295.                 occur,   is    to    use    the    MEM_EXCLUDE_REGIONS    and
  296.                 MEM_INCLUDE_REGIONS  settings  to  specify the addresses that
  297.                 the hardware uses rather than using this setting.
  298.    Default:     The default AUTO setting will lead to correct choices of  LIM
  299.                 EMS  addresses.    Most  users will never need to change this
  300.                 setting.
  301.    Settable:    At VDM creation time only.
  302.    Examples:    In some cases the default choice may conflict with  addresses
  303.                 used  by  hardware  on the machine.  This can happen only for
  304.                 devices that are not supported by a virtual device driver.
  305.  
  306.  EMS_HIGH_OS_MAP_REGION
  307.    Function:    In  addition  to  the  EMS  page frame, some programs can use
  308.                 additional addresses to access expanded memory.  This setting
  309.                 gives advanced users the capability to adjust the size of the
  310.                 additional EMS region.
  311.  
  312.  
  313.                 See also "EMS_FRAME_LOCATION" in topic 11.2.4.1.
  314.    Advantages:  An  advanced  user  can  use  the   MEM_EXCLUDE_REGIONS   and
  315.                 MEM_INCLUDE_REGIONS settings to specify the addresses used by
  316.                 devices that do not have virtual device drivers, and can then
  317.                 set  the size of the EMS_HIGH_OS_MAP_REGION appropriately for
  318.                 their program.  This helps avoiding conflicts with  addresses
  319.                 used by devices and programs.
  320.    Default:     The  value  set  is the size of the region in kilobytes.  The
  321.                 default is 32KB.
  322.    Settable:    At VDM creation only.
  323.    Examples:    None.
  324.  
  325.  EMS_LOW_OS_MAP_REGION
  326.    Function:    Some programs can use remappable conventional memory.  Others
  327.                 do  not use this feature.  This setting allows advanced users
  328.                 to  set  the  size  of  the  remappable  conventional  memory
  329.                 available in a VDM.
  330.    Default:     The  value  set  is the size of the region in kilobytes.  The
  331.                 default is 384KB.
  332.    Settable:    At VDM creation only.
  333.    Examples:    None.
  334.  
  335.  EMS_MEMORY_LIMIT
  336.    Function:    This setting controls the amount of EMS memory available to a
  337.                 VDM.
  338.    Advantages:  The  user can set this to a higher value for running programs
  339.                 that require a large amount of EMS memory.  Other programs do
  340.                 not use EMS at all.  The size can be set to 0 in such  cases,
  341.                 to  disable  EMS  support  for that VDM.   Programs generally
  342.                 state whether they use EMS on the box or in their manuals.
  343.    Default:     The value set is the size of the region in  kilobytes.    The
  344.                 default size is 2MB.
  345.    Settable:    At VDM creation time only.
  346.    Examples:    If a spreadsheet runs out of memory, the amount of EMS memory
  347.                 can be increased and the VDM restarted.
  348.  
  349.  
  350.  HW_NOSOUND
  351.    Function:    Enables or disables sound started by a DOS program.
  352.    Advantage:   Any  sound from a program is heard unless sounds is disabled.
  353.                 An "x" in the check box indicates that the  sound  is  to  be
  354.                 heard.
  355.    Drawbacks:   No error sound will be heard if HW_NOSOUND is turned on.
  356.    Default:     OFF.
  357.    Settable:    At any time, including while a program is running in a VDM.
  358.    Examples:    Output  from  a  music  program may be disabled when the user
  359.                 wishes to hear another music program, or  switch  to  another
  360.                 session.
  361.  
  362.  HW_ROM_TO_RAM
  363.    Function:    Enabling  HW_ROM_TO_RAM  causes  the operating system to copy
  364.                 read-only memory (ROM) and run  the  copy  in  32-bit  random
  365.                 access  memory  (RAM).    With  this  setting  enabled,  BIOS
  366.                 operations run faster and system utilities may patch BIOS.
  367.    Default:     OFF.
  368.    Settable:    At VDM creation only.
  369.    Examples:    This setting is useful if debugging the kernel.   The  change
  370.                 would  allow  normal  breakpoints  to be set in ROM and allow
  371.                 stepping over calls and loops.
  372.  
  373.                 Warning: If an application writes to a memory address used by
  374.                 the  ROM  while  this  setting  is  enabled,  it  may   cause
  375.                 unpredictable  results  for  that  application  and for every
  376.                 application run thereafter in the VDM.
  377.  
  378.  HW_TIMER
  379.    Function:    When  enabled, allows an application to have direct access to
  380.                 the 8253 timer ports and prevents the operating  system  from
  381.                 trapping,  or intercepting, the timer request and emulating a
  382.                 timer.
  383.    Advantages:  Certain timing-critical applications will not  run  (or  will
  384.                 run  much  slower) if accesses to timer ports are trapped and
  385.                 virtualized.   In addition,  the  values  they  read  do  not
  386.                 accurately  reflect the amount of time passed because they do
  387.                 not take trapping  overhead  into  account.    Enabling  this
  388.                 setting  allows  certain  timing-dependent  code  to run more
  389.                 effectively.
  390.    Drawbacks:   Applications that change the divisor before this  setting  is
  391.                 enabled  and  then read the timer ports after the setting has
  392.                 been enabled may not function properly.   If the  setting  is
  393.                 enabled first, the VDM will not detect changes to the divisor
  394.                 correctly,  and  the  simulated  interrupt  frequency will be
  395.                 incorrect.  Also, multiple applications  using  this  setting
  396.                 may interfere with one another.
  397.    Default:     Off.    Most  applications  will  operate normally with timer
  398.                 virtualization.
  399.    Settable:    At any time.  It is useful to alter this setting  dynamically
  400.                 and watch for changes in application performance.
  401.    Examples:    The  ROMs  on  some  machines  implement very brief delays by
  402.                 polling the timer ports.   These delays  become  unacceptably
  403.                 long unless direct timer port access is allowed.
  404.  
  405.  
  406.  IDLE_SECONDS
  407.    Function:    When  programs  appear  to  be  doing nothing but waiting for
  408.                 input, the operating system gives  them  less  time  to  run.
  409.                 This  is  done  to give preference to programs that are doing
  410.                 useful work.  Some programs periodically appear to be waiting
  411.                 for input, but then change their behavior and continue  after
  412.                 a   time.    This  setting  disables  the  "IDLE_SENSITIVITY"
  413.                 function for a period of time  after  useful  work  has  been
  414.                 detected.
  415.  
  416.  
  417.                 Also  see "IDLE_SENSITIVITY" in topic 11.2.6.2 below for more
  418.                 details on idle detection.
  419.    Advantages:  If a program appears to run slowly when there  is  an  option
  420.                 for   the  user  to  provide  input,  this  value  should  be
  421.                 increased.
  422.    Drawbacks:   Setting the  value  too  high  gives  the  DOS  program  more
  423.                 resources than it needs.
  424.    Default:     This  value  is  in  seconds.    The  default is no idle time
  425.                 allowed.
  426.    Settable:    The setting can be changed while the program  is  running  to
  427.                 tune it to the proper value.
  428.    Examples:
  429.                 -   A  game  may pause, for instance, to wait for the user to
  430.                     make a choice, but then continues if the  user  does  not
  431.                     react.
  432.  
  433.                 -   When DOS 5 is run in a virtual machine boot session, (See
  434.                     Chapter 12,  "Virtual  Machine  Boot")  the DOS shell may
  435.                     fail to complete displaying the directory of the C: drive
  436.                     if IDLE_SENSITIVITY is set too low.  IDLE_SECONDS  should
  437.                     then be raised.
  438.  
  439.  IDLE_SENSITIVITY
  440.    Function:    The  idle sensitivity level sets a threshold for judging when
  441.                 applications will be considered  idle.    The  value  is  the
  442.                 percentage   of   the   maximum  possible  polling  rate  the
  443.                 application can perform.  If an application polls at  a  rate
  444.                 higher than this value, it is considered "idle."
  445.  
  446.                 DOS programs often "poll" for input when they are waiting for
  447.                 a  user  response.    For  instance, a program may wait for a
  448.                 response by repeatedly checking to see if the user has hit  a
  449.                 key.  In a multitasking environment such as OS/2 Version 2.0,
  450.                 this  wastes  time  when  other  programs  could  be  running
  451.                 instead.   The operating  system  detects  idle  programs  by
  452.                 looking  for a high rate of polling for input.  When programs
  453.                 are judged to be waiting for input, they are given less  time
  454.                 to run.
  455.  
  456.                 For  example,  if  idle  sensitivity  is  set to 75%, then an
  457.                 application repeatedly checking to see if input is  available
  458.                 would  have  to  do  this  checking  at  more than 75% of the
  459.                 maximum possible rate before it would be judged idle.
  460.  
  461.                 Idle detection is a "best  guess"  of  what  the  program  is
  462.                 doing.    It  could  be that the program is polling at a very
  463.                 high  rate,  but  is  still  doing  useful  work  in  between
  464.                 checking.   It may be that the application checks at a fairly
  465.                 slow rate but still is doing nothing but waiting.   The  idle
  466.                 sensitivity  threshold allows adjustment of the threshold for
  467.                 a particular application.
  468.  
  469.                 Also see "IDLE_SECONDS" in topic 11.2.6.1.
  470.    Advantages:  If an application receives input while running and  seems  to
  471.                 run  slower than expected, the idle sensitivity should be set
  472.                 to a higher value.   This lets  the  application  poll  at  a
  473.                 higher  rate without being judged idle.  Setting the level to
  474.                 100 turns idle detection off  altogether.    The  application
  475.                 will be allowed to poll for input as often as it likes.
  476.  
  477.                 If an application is waiting for input and other applications
  478.                 do  not  appear to be running, the idle sensitivity should be
  479.                 adjusted downward.  This lowers the threshold for judging the
  480.                 application idle.
  481.    Default:     The default is 75%.
  482.    Settable:    The setting can be changed while the program  is  running  to
  483.                 tune it to the proper value.
  484.    Examples:    Overall system performance can usually be improved when there
  485.                 are  multiple DOS applications running if IDLE_SENSITIVITY is
  486.                 turned down.
  487.  
  488.                 Also see "DOS_BACKGROUND_EXECUTION" in topic 11.2.2.1.
  489.  
  490.  KBD_ALTHOME_BYPASS
  491.    Function:    When   enabled,  prevents  the  Alt+Home  key  sequence  from
  492.                 switching the VDM between full screen and windowed mode.
  493.    Advantages:  Enabling this setting allows normal behavior for applications
  494.                 which themselves make use of the Alt+Home key sequence.
  495.    Drawbacks:   When enabled, the user must  use  the  Ctrl+Esc  sequence  to
  496.                 switch  to  Presentation Manager from a full screen VDM, then
  497.                 use the context menu of  the  class  to  switch  the  VDM  to
  498.                 windowed mode.
  499.    Default:     Off  (Alt+Home  will  cause  a switch between full screen and
  500.                 windowed mode).
  501.    Settable:    At any time.
  502.  
  503.  KBD_BUFFER_EXTEND
  504.    Function:    Increases a VDM's keyboard type-ahead buffer size.
  505.    Advantages:  Provides  greater  keystroke  buffering,  consistent with the
  506.                 level available in VIO windows.   Note that  Ctrl-Break  will
  507.                 flush  the  entire  buffer, just as it does with the standard
  508.                 buffer.
  509.    Drawbacks:   Applications which bypass the ROM BIOS  input  buffer  and/or
  510.                 INT  16h  may not benefit from this feature.  There is also a
  511.                 small amount of additional memory overhead for every VDM.
  512.    Default:     On.  Most applications will benefit, and those  that  do  not
  513.                 should not be adversely affected.
  514.    Settable:    At  any  time.   This facilitates easy experimentation by the
  515.                 user in the (rare) event that a problem does arise.
  516.    Examples:    None.
  517.  
  518.  
  519.  KBD_CTRL_BYPASS
  520.    Function:    When  enabled,  inhibits  one  or more control key sequences,
  521.                 allowing an application in the VDM to use these sequences for
  522.                 its own purposes.
  523.    Advantages:  Enabling this setting allows normal behavior for applications
  524.                 which make use of control key sequences normally used by OS/2
  525.                 Version 2.0.
  526.    Drawbacks:   Enabling this setting may  prevent  certain  operations  from
  527.                 being  performed  with  OS/2  Version  2.0  and the Workplace
  528.                 Shell.
  529.    Default:     NONE (All control key sequences behave in the normal manner).
  530.    Settable:    At any time.
  531.    Examples:    None.
  532.  
  533.  KBD_RATE_LOCK
  534.    Function:    Prevents  a DOS application in a VDM from changing the system
  535.                 keyboard repeat rate.
  536.    Advantages:  Insulates machine from applications that  modify  the  repeat
  537.                 rate in an uncontrolled or undesirable way.
  538.    Drawbacks:   Prevents  the  application's  repeat  rate from taking effect
  539.                 even when the application is the focus session.
  540.    Default:     Off.  Most applications do not modify the  repeat  rate,  and
  541.                 those  that  do  are  generally in accordance with the user's
  542.                 wishes.
  543.    Settable:    At any time.
  544.    Examples:    None.
  545.  
  546.  MEM_EXCLUDE_REGIONS
  547.    Function:    This  setting  is used to specify address ranges which should
  548.                 be protected  from  use  by  EMS/XMS  and  direct  access  by
  549.                 applications.  This setting is intended for experienced users
  550.                 who understand the hardware.
  551.    Advantages:  This  setting  restricts the use of EMS/XMS on certain ranges
  552.                 in the region between RMSIZE and 1MB.  It also protects these
  553.                 ranges from being touched by user applications by  portraying
  554.                 ROM there.
  555.    Drawbacks:   Some  hardware  adapters  stop functioning if their addresses
  556.                 are touched in random fashion.  If these ranges  are  defined
  557.                 excessively,  they  will  adversely  impact  the function and
  558.                 performance of EMS and XMS services.
  559.    Default:     By default, this setting is void.  Each address is  specified
  560.                 in  hex  and if there is no range specified, the length taken
  561.                 is a page (4KB).
  562.    Settable:    At VDM creation only.
  563.    Examples:    None.
  564.  
  565.  MEM_INCLUDE_REGIONS
  566.    Function:    Specify  regions  which  should be made available to EMS/XMS.
  567.                 This setting is used to specify some address  ranges  between
  568.                 RMSIZE and 1MB for use by EMS and XMS.
  569.    Advantages:  If  there  is a hardware adapter in this range which the user
  570.                 knows is not going to be used by a  particular  VDM  session,
  571.                 then  the  address  range used by this adapter should be made
  572.                 available to EMS and XMS.  This will improve the  performance
  573.                 of  EMS  and XMS services.   Only advanced users who know the
  574.                 addresses used by a card should use this setting.
  575.    Default:     By default, this setting is void.
  576.    Settable:    At VDM creation only.
  577.    Examples:    See discussion in "Expanded Memory  (EMS)  and  Upper  Memory
  578.                 (UMB)" in topic 6.2.
  579.  
  580.  MOUSE_EXCLUSIVE_ACCESS
  581.    Function:    This  setting  allows VDMs to run applications which maintain
  582.                 their own mouse pointers.  Some DOS applications manage their
  583.                 own  mouse  positions  and  movements;  in  many  cases,  the
  584.                 application's  values  for  mouse  sensitivity  and/or double
  585.                 speed threshold are  different  from  those  of  Presentation
  586.                 Manager.    As a result, a Presentation Manager mouse pointer
  587.                 may be outside the VDM  window while the application  pointer
  588.                 is  somewhere  in  the window not receiving any mouse events.
  589.                 This means having two  asynchronous  mouse  pointers  on  the
  590.                 screen.
  591.    Advantages:  The  user forces the physical mouse driver to send its events
  592.                 directly to the virtual mouse driver  without  going  through
  593.                 Presentation  Manager.    Only one mouse pointer appears when
  594.                 the particular VDM window has the focus.
  595.    Default:     OFF.
  596.    Settable:    At any time.
  597.  
  598.                 However, this only marks the VDM window and does not actually
  599.                 activate the setting.  In order to activate it, the user must
  600.                 press a mouse button within the VDM window.  The Presentation
  601.                 Manager pointer  disappears,  leaving  only  the  application
  602.                 pointer.    In  order  to  regain  the  Presentation  Manager
  603.                 pointer, the user  must  press  any  of  the  hot-keys  (Alt,
  604.                 Ctrl+Esc, Shift+Esc).
  605.    Examples:    WordPerfect 5.1 has its own block-shaped mouse pointer, which
  606.                 will  appear  together with the system mouse pointer when the
  607.                 window  has  the  focus.  Turning  MOUSE_EXCLUSIVE_ACCESS  on
  608.                 allows  the  user  to remove the system mouse pointer when in
  609.                 WordPerfect.
  610.  
  611.  PRINT_TIMEOUT
  612.    Function:    Use  this  setting  to adjust the amount of time, in seconds,
  613.                 that the OS/2 V2.0 print subsystem  waits  before  forcing  a
  614.                 print  job  to  the  printer.   In DOS, information sent by a
  615.                 program for printing goes directly to a  printer.    However,
  616.                 the  OS/2 V2.0 print subsystem assembles print information in
  617.                 a spool file.   After a specified   period  of  time,  during
  618.                 which  the  spool  file does not grow larger, OS/2 V2.0 print
  619.                 subsystem sends the information to the printer  as  a  single
  620.                 print job.
  621.    Advantage:   There is no need to exit the DOS program before the print job
  622.                 is released by the OS/2 V2.0 print subsystem.  This is useful
  623.                 for  applications  which  do not explicitly close their print
  624.                 jobs.
  625.    Default:     15 seconds, configurable from 0 to 3600 seconds (0 seconds is
  626.                 no timeout).
  627.    Settable:    At any time.
  628.    Examples:    A timeout of 1 or 2 seconds is  sufficient  for  small  print
  629.                 jobs,  such  as copying the contents of the screen.  However,
  630.                 when printing large files, formatting documents,  or  running
  631.                 calculations,  the value must be set high enough to allow all
  632.                 print results to reach the  spooler  before  the  time  limit
  633.                 expires.    If  not,  results  go  in two or more spool files
  634.                 instead  of  one,   and   the   resulting   output   may   be
  635.                 instead  of  one,   and   the   resulting   output   may   be
  636.                 unsatisfactory.
  637.  
  638.  VIDEO_FASTPASTE
  639.    Function:    Speeds up input from other sources than the keyboard.
  640.    Advantages:  Improves  the speed of paste operations from the clipboard to
  641.                 a DOS application.
  642.    Drawbacks:   Does not work with  all  applications  (in  particular,  some
  643.                 applications  which  monitor keyboard interrupts directly may
  644.                 experience errors).
  645.    Default:     Off.
  646.    Settable:    At any time.  This facilitates easy  experimentation  by  the
  647.                 user.
  648.    Examples:    Pasting into the DOS command prompt, or any application using
  649.                 DOS Console I/O functions, will generally work.  However, the
  650.                 Microsoft   Editor   (M)   and  its  successor,  Programmer's
  651.                 Workbench (PWB), can fail when  using  fast  pasting  because
  652.                 they  rebuffer  keystrokes  in  an internal buffer, which can
  653.                 overflow.
  654.  
  655.  VIDEO_MODE_RESTRICTION
  656.    Function:    Extends  the  640KB  DOS address space by limiting video mode
  657.                 support.
  658.    Advantages:  For text-based or CGA graphics based applications, the  video
  659.                 memory normally reserved just above 640KB for high-resolution
  660.                 graphics  modes  can  be  remapped  to  conventional  memory,
  661.                 providing an additional 64KB (or 96KB, depending on  graphics
  662.                 mode)  for  DOS applications, TSRs, and other programs.  This
  663.                 is valuable for applications that do not  take  advantage  of
  664.                 EMS or XMS memory extenders.
  665.    Drawbacks:   It is not possible to completely hide the fact that the video
  666.                 adapter    is   high-resolution   graphics-capable;      some
  667.                 applications may attempt to enable those modes  and  use  the
  668.                 memory  above 640KB as video memory, inadvertently corrupting
  669.                 application data.  Care must therefore be  taken  when  using
  670.                 this feature.
  671.    Default:     NONE.  The complete list of settings is:
  672.                 -   None
  673.                 -   CGA modes only (adds 96KB)
  674.                 -   MONO modes only (adds 64KB).
  675.    Settable:    At VDM creation only.
  676.    Examples:    None.
  677.  
  678.  VIDEO_ONDEMAND_MEMORY
  679.    Function:    Reduces swap space requirements for fullscreen VDMs.
  680.    Advantages:  Allows  a  full-screen  VDM  to  run without pre-allocating a
  681.                 virtual  video  buffer  for  the   worst-case   video   modes
  682.                 (high-resolution  graphics  modes).   Using this setting does
  683.                 not prevent execution of  graphics  applications;  it  simply
  684.                 means  that  allocation  of the buffer is delayed until it is
  685.                 needed.  This can save a substantial  amount  of  memory/swap
  686.                 space,  which  might  be  important  under certain low-memory
  687.                 conditions.  It also enables you to start a program quickly.
  688.    Drawbacks:   If allocation of a virtual video buffer for a full-screen VDM
  689.                 fails at the time the application changes  video  modes,  the
  690.                 session  must  be  frozen  and  switched  back  to the shell.
  691.                 Unless the user is able to free memory from another  session,
  692.                 he  may  be  unable to get the DOS application running again.
  693.                 This is a concern if the application contains unsaved data.
  694.    Default:     Off.
  695.    Settable:    At any time.  This allows the user to save  memory  the  next
  696.                 time the session is switched to full-screen.
  697.    Examples:    None.
  698.  
  699.  VIDEO_RETRACE_EMULATION
  700.    Function:    Simulates  the  video  retrace  status port to provide faster
  701.                 access.
  702.    Advantages:  DOS applications that poll  the  video  retrace  status  port
  703.                 often  write  to the screen only during the retrace interval,
  704.                 even though it is safe (on EGA and VGA adapters) to  draw  at
  705.                 any time without causing interference (also known as "snow").
  706.                 This  feature causes most applications to write to the screen
  707.                 more often, and compensates for the performance drag  imposed
  708.                 by monitoring the port in the first place.
  709.    Drawbacks:   Some  applications  may  poll  the  port  in  such a way that
  710.                 overall performance is  worse;  this  is  sometimes  true  of
  711.                 applications  that draw only during vertical (not horizontal)
  712.                 retrace.  Unfortunately, while turning  off  trace  emulation
  713.                 will    restore   performance,   there   is   a   risk   that
  714.                 screen-switching will not be as reliable.
  715.    Default:     On.  Reliable screen-switching has higher priority  over  the
  716.                 minority  of  applications  that will experience some drag in
  717.                 performance.
  718.    Settable:    At any time.    This  allows  the  user  to  experiment  with
  719.                 different settings in the event of a performance problem.
  720.    Examples:    None.
  721.  
  722.  VIDEO_ROM_EMULATION
  723.    Function:    Emulates selected INT 10h ROM Video functions.
  724.    Advantages:  Provides  faster output for selected video functions than ROM
  725.                 services typically provide.  This also has a dramatic  effect
  726.                 on the performance of those functions in a window.
  727.    Drawbacks:   Some  ROMs  may offer enhanced services that are not included
  728.                 in  the  emulation.    Applications  which  rely  upon  these
  729.                 services may not execute correctly.
  730.    Default:     On.      Because   the   INT   10h  ROM  Video  services  are
  731.                 well-documented,  incompatibilities  are  unlikely  and   the
  732.                 performance   benefits  of  using  the  emulation  are  quite
  733.                 significant.
  734.    Settable:    At any time.  This allows the user to experiment in the event
  735.                 of a compatibility problem.
  736.    Examples:    None.
  737.  
  738.  VIDEO_SWITCH_NOTIFICATION
  739.    Function:    Notifies  a  DOS  application of a switch to/from full-screen
  740.                 mode.
  741.    Advantages:  Allows applications that monitor this notification to  redraw
  742.                 their  screens  as  needed.    This may be necessary for some
  743.                 video adapters that provide modes (and applications that  use
  744.                 those  modes) which are not fully supported by the OS/2 video
  745.                 those  modes) which are not fully supported by the OS/2 video
  746.                 driver or which  are  slightly  incompatible.    It  is  also
  747.                 valuable  in  situations  where  an OS/2 video driver has not
  748.                 allocated a virtual video buffer (see "VIDEO_8514_XGA_IOTRAP"
  749.                 in topic 11.2.11.8).    Use  this  setting  if  you  use  the
  750.                 VIDEO_ONDEMAND_MEMORY  DOS setting, because concurrent buffer
  751.                 allocation and screen switching can make a screen go black.
  752.    Drawbacks:   When  used   indiscriminately,   this   feature   may   cause
  753.                 unnecessary   and   time-consuming  screen  redrawing.    For
  754.                 standard MONO/CGA/EGA/VGA video modes, the OS/2 video  driver
  755.                 should   be  able  to  restore  application  screens  without
  756.                 assistance.
  757.    Default:     Off.  For standard hardware and standard  video  modes,  this
  758.                 feature is not necessary.
  759.    Settable:    At any time.  This allows the user to experiment in the event
  760.                 of a compatibility problem.
  761.    Examples:    Windows  2.x  and  3.x  understand this notification and will
  762.                 redraw themselves accordingly.   For WIN-OS/2  sessions,  set
  763.                 this setting on.
  764.  
  765.  VIDEO_WINDOW_REFRESH
  766.    Function:    Adjusts the window update frequency for a given VDM.
  767.    Advantages:  For   applications   (particularly   graphics)   that   write
  768.                 frequently to video memory, this value can  be  increased  to
  769.                 reduce  time  spent  updating  the  window  and  provide more
  770.                 processor time for the application.
  771.  
  772.                 Note:  This has no effect on updates based  on  other  events
  773.                        such   as  keyboard  input  or  synchronous  scrolling
  774.                        operations or any video events other than refresh.
  775.    Drawbacks:   A large refresh period can make an application  unusable  (or
  776.                 at least, very hard to use).
  777.    Default:     0.1  seconds.   This has been found to yield the best overall
  778.                 performance.
  779.    Settable:    At any time, in increments of 0.1 seconds.   This allows  for
  780.                 experimentation.  The range is from 0.1 to 60.0 seconds.
  781.    Examples:    This  setting affects normal TTY-style output.  Compare a DIR
  782.                 or TYPE operation before and after altering this setting.
  783.  
  784.  VIDEO_8514_XGA_IOTRAP
  785.    Function:    When  set  OFF, unrestricted access to 8514/A display adapter
  786.                 hardware.   Note that this  setting  is  only  available  for
  787.                 systems with 8514/A display adapters installed.
  788.    Advantages:  Achieves  higher  performance  for  8514/A  applications  and
  789.                 eliminates the overhead  of  the  1MB  8514/A  virtual  video
  790.                 buffer normally allocated for each VDM when set OFF.
  791.    Drawbacks:   Screen-switching  away  from  the  application will result in
  792.                 immediate freezing of the application, and the system may not
  793.                 be able to reliably switch back; that is,  the  screen  image
  794.                 may  not  be  correct.    This  may  be  overcome  by setting
  795.                 VIDEO_SWITCH_NOTIFICATION on, which notifies applications  to
  796.                 redraw  their  own screen images.  Note however, that not all
  797.                 applications will take advantage of the notification.
  798.  
  799.                 Note:  An application with this setting enabled  may  not  be
  800.                        run  in  windowed  mode,  or  copied to the clipboard,
  801.                        because there is no  complete  information  about  its
  802.                        state.
  803.    Default:     Off.
  804.    Settable:    No; may be set at VDM creation only.
  805.    Examples:    When  executing  Windows  3.0 with the 8514/A display driver,
  806.                 certain operations such as painting dithered backgrounds will
  807.                 run significantly faster.
  808.  
  809.  XMS_HANDLES
  810.    Function:    Specifies  the  number  of  XMS  extended  memory block (EMB)
  811.                 handles.  A handle is used with each XMS EMB.  This number is
  812.                 required because XMS pre-allocates all the handle space to be
  813.                 compatible with XMS specifications.  This setting  should  be
  814.                 used only if an application uses a large number of handles.
  815.    Advantages:  This  setting  restricts the number of block handles, thereby
  816.                 reducing memory consumption.
  817.    Drawbacks:   Specifying a large number of  handles  will  increase  memory
  818.                 consumption and adversely impact system performance.
  819.    Default:     The default value of this setting is 32.
  820.    Settable:    At VDM creation only.
  821.    Examples:    None.
  822.  
  823.  XMS_MEMORY_LIMIT
  824.    Function:    Specifies  the per VDM XMS memory limit.  This setting should
  825.                 be used under the  same  guidelines  as  described  above  in
  826.                 "XMS_HANDLES"  in  topic 11.2.12.1.   The global limit is the
  827.                 overall maximum XMS memory consumption, and the per-VDM limit
  828.                 is  the  maximum  allowed   for   each   VDM.      See   also
  829.                 "Initialization"  in  topic 6.3.1.2  for  defining global and
  830.                 per-VDM limit in the CONFIG.SYS.
  831.    Drawbacks:   Specifying  a  large  number  may  adversely  affect   system
  832.                 performance.
  833.    Default:     The default value is 2MB per-VDM.
  834.    Settable:    At VDM creation only.
  835.    Examples:    4096; this specifies a limit for each VDM.
  836.  
  837.  XMS_MINIMUM_HMA
  838.    Function:    Specifies  the  minimum  HMA  memory  request allowed.   This
  839.                 setting allows the user  to  fine  tune  the  XMS.    HMA  is
  840.                 slightly  less  than  64KB in size.   Only one request can be
  841.                 fulfilled from this area at a time.
  842.    Advantages:  If a TSR takes a very small allocation, then  it  will  waste
  843.                 this  area for other applications.  In such cases a limit can
  844.                 be specified.
  845.    Default:     The default value is zero, which means all the requests  will
  846.                 be allowed.
  847.    Settable:    At VDM creation only.
  848.    Examples:    2048; this sets a limit of 2KB.
  849.  
  850.  WIN_RUNMODE
  851.    Function:    OS/2 V2.0 can use two modes to run Windows programs:
  852.                 -   Real
  853.                 -   Standard
  854.  
  855.                 Real  mode  is  the  mode  that  Windows 2.0 programs run in.
  856.                 Windows 3.0 programs usually run in standard  mode.    For  a
  857.                 detailed  discussion,  see Chapter 8, "Windows Applications."
  858.                 Use this setting to specify WIN-OS/2 mode for your session.
  859.    Default:     AUTO (the system selects standard mode as long as it has  the
  860.                 OS/2  V2.0  Virtual  Device  Drivers  required  to  support a
  861.                 standard mode WIN-OS/2 session in  the  OS/2  V2.0  operating
  862.                 system).    AUTO  enables  the system to automatically choose
  863.                 between real and standard.
  864.    Examples:    None.
  865.  
  866. -------------------------------------------------------------------------------
  867.