home *** CD-ROM | disk | FTP | other *** search
/ Microsoft Multimedia Development Kit 0.9 beta / MDKBeta_EndUserEnvironment_ISO9660.iso / winini.txt < prev    next >
Encoding:
Text File  |  1990-11-09  |  24.8 KB  |  625 lines

  1. ----------
  2. WININI.TXT
  3. ----------
  4.  
  5.  
  6.   NOTE: This is the first of two files that contain
  7.         information about WIN.INI. The second file, named
  8.         WININI2.TXT, is a continuation of the information
  9.         presented here.
  10.  
  11.  
  12. INTRODUCTION
  13. ------------
  14.  
  15. WIN.INI is one of two Windows initialization files that are
  16. included with Windows. Windows initialization files contain
  17. information that defines your Windows environment. Windows
  18. and Windows applications can use the information stored in
  19. these files to configure themselves to meet your needs and
  20. preferences.
  21.  
  22. There are two standard Windows initialization files:
  23.  
  24.   * WIN.INI, which primarily contains settings that allow
  25.     you to alter your Windows environment according to your
  26.     preferences.
  27.  
  28.   * SYSTEM.INI, which primarily contains settings that allow
  29.     you to customize Windows to meet your system's hardware
  30.     needs.
  31.  
  32. This document describes the contents of the WIN.INI file and
  33. explains how to change settings in the file.
  34.  
  35. For information on the SYSTEM.INI file, see the SYSINI.TXT
  36. file.
  37.  
  38.   CAUTION: Changing settings can lead to undesirable results
  39.            when you run Windows. Before changing any
  40.            setting, read "Changing Settings" later in this
  41.            document.
  42.  
  43.  
  44. FORMAT
  45. ------
  46.  
  47. Windows initialization files have the following format:
  48.  
  49.   [section name]
  50.   keyname=value
  51.  
  52. In this example, [section name] is the name of a section.
  53. Sections are used to break settings into logical groups. The
  54. enclosing brackets ([]) are required, and the left bracket
  55. must be in the leftmost column on the screen.
  56.  
  57. The keyname=value statement defines the value of each
  58. setting. A keyname is the name of a setting. It can consist
  59. of any combination of letters and digits, and must be
  60. followed immediately by an equal sign (=). The value can be
  61. an integer, a string, or a quoted string, depending on the
  62. setting.
  63.  
  64. You can include comments in initialization files. You must
  65. begin each line of comments with a semicolon (;).
  66.  
  67.  
  68. HOW TO READ LISTINGS IN THIS DOCUMENT
  69. -------------------------------------
  70.  
  71. In this document, WIN.INI settings are listed alphabetically
  72. within the sections that contain them. These sections appear
  73. in WIN.INI and in this document in the following order
  74. (however, the order of these sections is not important):
  75.  
  76.   [windows]
  77.   [desktop]
  78.   [extensions]
  79.   [intl]
  80.   [ports]
  81.   [fonts]
  82.   [PrinterPorts]
  83.   [devices]
  84.   [colors]
  85.   [sounds]
  86.  
  87. In addition, some Windows applications may add or insert
  88. other sections.
  89.  
  90. The settings do not appear alphabetically in WIN.INI. If you
  91. want to change a setting, you will have to search for it
  92. within the appropriate section.
  93.  
  94. The syntax, purpose, and recommended method for changing
  95. each setting appear in the following format:
  96.  
  97. ------------------------------------------------------------
  98. SettingName=<value-type>
  99.   Default: This is Windows' built-in value for this setting.
  100.   Purpose: This paragraph briefly describes the function of
  101.            the setting and its default value (if
  102.            applicable).
  103.   To change: This sentence states the recommended method
  104.            for changing the value of this setting.
  105. ------------------------------------------------------------
  106.  
  107. The <value-type> indicates whether the value should be a
  108. number, a letter, a range of numbers, or something else.
  109.  
  110. A setting that is listed in this document but that does not
  111. appear in your WIN.INI file has the default value.
  112.  
  113.  
  114. CHANGING SETTINGS
  115. -----------------
  116.  
  117. Windows created the WIN.INI file when you installed Windows.
  118. All of the settings contained in this file were set to
  119. default values defined by Windows.
  120.  
  121. You might want to change one or more of these values in
  122. order to change the appearance or performance of Windows to
  123. suit your needs.
  124.  
  125. There are two ways to change WIN.INI settings:
  126.  
  127. * You can use Control Panel to change most settings.
  128.  
  129. * Use a text editor such as Notepad to edit the WIN.INI
  130.   file directly. (Don't use a formatting editor; it can
  131.   corrupt your WIN.INI file.)
  132.  
  133. You can change most settings in WIN.INI by using Control
  134. Panel. By doing so, you avoid opening WIN.INI as a text
  135. file, where it is easier to make mistakes.
  136.  
  137. For more information on Control Panel, see Chapter 5,
  138. "Control Panel," in the Windows User's Guide.
  139.  
  140. For the settings you cannot change by using Control Panel,
  141. you must open the WIN.INI file, edit it using a text editor
  142. such as Notepad, and then restart Windows. For more
  143. information on how to use Notepad, see Chapter 10,
  144. "Additional Accessories," in the Windows User's Guide.
  145.  
  146.   CAUTION: You should use care when making changes to your
  147.            WIN.INI file using a text editor. Incorrect
  148.            changes to WIN.INI can lead to unexpected
  149.            results when you run Windows. In addition, some
  150.            editors can damage certain characters (those
  151.            with ANSI values of greater than 127). It is
  152.            recommended that you use Notepad as a text
  153.            editor. The listings in this document indicate
  154.            which settings you can change using Control
  155.            Panel. Use Control Panel whenever possible.
  156.  
  157.            Always back up your WIN.INI file before you
  158.            open it.
  159.  
  160.  
  161. UPDATING WIN.INI FROM PREVIOUS VERSIONS OF WINDOWS
  162. --------------------------------------------------
  163.  
  164. If you update your system to Windows version 3.0 from
  165. Windows version 2.x, Setup will automatically update your
  166. WIN.INI file by making the following changes:
  167.  
  168. In the [windows] section, Setup will add one setting:
  169.  
  170.   Documents=
  171.  
  172. and will clear the old values from another setting:
  173.  
  174.   Device=
  175.  
  176. In the [extensions] section, Setup will add two settings:
  177.  
  178.   pcx=pbrush.exe ^.pcx
  179.   rec=recorder.exe ^.rec
  180.  
  181. In the [devices] section, Setup will remove all entries. The
  182. previous drivers, fonts, and other resources will remain in
  183. your system. Setup will ask you whether you want to upgrade
  184. to the new driver or stay with the previous one.
  185.  
  186. Setup leaves all other sections unchanged.
  187.  
  188. If you are updating to Windows version 3.0 from Windows
  189. version 1.x, Setup will not preserve any values from your
  190. old WIN.INI file.
  191.  
  192.  
  193. WHAT IS IN WIN.INI?
  194. -------------------
  195.  
  196. The settings in the WIN.INI file allow you to personalize
  197. your Windows environment. WIN.INI contains several sections,
  198. each of which consists of a group of related settings. Your
  199. WIN.INI file might not have all of these sections, or it
  200. might have additional sections, depending on your system's
  201. hardware and software requirements. The following sections
  202. can appear in WIN.INI:
  203.  
  204. This section             Does this
  205. ------------             ---------
  206. [windows]                Affects an assortment of elements
  207.                          in your Windows environment.
  208.  
  209. [desktop]                Controls the appearance of the
  210.                          screen background (desktop) and the
  211.                          positioning of windows and icons.
  212.  
  213. [extensions]             Associates specified types of
  214.                          files with corresponding
  215.                          applications.
  216.  
  217. [intl]                   Describes how to display items for
  218.                          countries other than the United
  219.                          States.
  220.  
  221. [ports]                  Lists all available output ports.
  222.                          These settings are listed in the
  223.                          WININI2.TXT file.
  224.  
  225. [fonts]                  Describes the screen font files
  226.                          that are loaded by Windows.
  227.                          (These settings are listed in the
  228.                          WININI2.TXT file.)
  229.  
  230. [PrinterPorts]           Lists active and inactive output
  231.                          devices that can be accessed by
  232.                          Windows. (These settings are listed
  233.                          in the WININI2.TXT file.)
  234.  
  235.  
  236. [devices]                Lists active output devices
  237.                          that provide compatibility with
  238.                          Windows 2.x applications. (These
  239.                          settings are listed in the
  240.                          WININI2.TXT file.)
  241.  
  242.  
  243. [colors]                 Defines colors for parts of the
  244.                          Windows display. (These settings
  245.                          are listed in the WININI2.TXT
  246.                          file.)
  247.  
  248.  
  249. [sounds]                 Associates specified sound
  250.                          files with corresponding
  251.                          sound names.  This is a multimedia
  252.                          extension to windows.
  253.  
  254.  
  255. Additional sections might be inserted by other applications.
  256. Consult the application's documentation for information on
  257. those sections.
  258.  
  259. ------------------------------------------------------------
  260. ------------------------------------------------------------
  261.  
  262. [WINDOWS] SECTION
  263.  
  264. The [windows] section contains settings that affect the
  265. following parts of your Windows environment:
  266.  
  267.   * Applications that start when you start Windows
  268.   * Warning beep
  269.   * Printing
  270.   * Window border width
  271.   * Keyboard speed
  272.   * Mouse settings
  273.   * Definition of files as documents or programs
  274.  
  275. The [windows] section can contain the following settings:
  276.  
  277. ------------------------------------------------------------
  278. Beep=<yes-or-no>
  279.   Default: yes
  280.   Purpose: If this setting is enabled, Windows sounds a
  281.            warning beep when you attempt to do something
  282.            that is not allowed.
  283.   To change: Choose the Sound icon from the Control Panel
  284.            window.
  285. ------------------------------------------------------------
  286. BorderWidth=<number>
  287.   Default: 3
  288.   Purpose: Sets the width of the borders around all the
  289.            windows on your desktop except those (such as
  290.            Control Panel) that have a fixed size. The
  291.            allowed range is 1 (narrowest) to 49 (widest).
  292.   To change: Choose the Desktop icon from the Control Panel
  293.            window.
  294. ------------------------------------------------------------
  295. CursorBlinkRate=<milliseconds>
  296.   Default: 530
  297.   Purpose: Indicates how many milliseconds elapse between
  298.            each blink of the selection cursor.
  299.   To change: Choose the Desktop icon from the Control Panel
  300.            window.
  301. ------------------------------------------------------------
  302. Device=<output-device-name>, <device-driver>,
  303.        <port-connection>
  304.   Default: none
  305.   Purpose: Defines the default printer. The
  306.            <output-device-name> value can be any device name
  307.            given in the [devices] section. An explicit port
  308.            and driver must be assigned to the device. The
  309.            <device-driver> value is the filename (without
  310.            the extension) of the device-driver file. The
  311.            <port-connection> value is any portname given in
  312.            the [ports] section.
  313.   To change: Choose the Printers icon from the Control Panel
  314.            window.
  315. ------------------------------------------------------------
  316. DeviceNotSelectedTimeout=<seconds>
  317.   Default: 15
  318.   Purpose: Specifies the default number of seconds for
  319.            Windows to wait for a device to be switched on. A
  320.            value is saved for each printer listed in the
  321.            [PrinterPorts] section. If the device is not
  322.            switched on during this time, Windows won't print
  323.            to the device. Note that for some devices,
  324.            Windows immediately posts an error message if the
  325.            device is not already switched on.
  326.   To change: Use Notepad to edit the WIN.INI file. This
  327.            setting serves only as the system default value.
  328.            To change the value for a particular printer,
  329.            choose the Printers icon from the Control Panel
  330.            window. Using Control Panel changes the
  331.            corresponding value only in the [PrinterPorts]
  332.            section.
  333. ------------------------------------------------------------
  334. Documents=<extensions>
  335.   Default: none
  336.   Purpose: Defines files that are to be considered
  337.            "documents" by Windows. Files with the extensions
  338.            listed in the [extensions] section of WIN.INI are
  339.            automatically considered documents. Use this
  340.            setting to define only document file extensions
  341.            that are not in the [extensions] section. The
  342.            extensions listed here are not associated with
  343.            any application. Separate extension names with a
  344.            space, and do not include the preceding periods.
  345.   To change: Use Notepad to edit the WIN.INI file.
  346. ------------------------------------------------------------
  347. DoubleClickSpeed=<milliseconds>
  348.   Default: 452
  349.   Purpose: Establishes the maximum amount of time between
  350.            clicks of the mouse button that the system
  351.            will permit for one double-click. The lower the
  352.            value, the less time you have to click twice in
  353.            order to effect a double-click.
  354.   To change: Choose the Mouse icon from the Control Panel
  355.            window.
  356. ------------------------------------------------------------
  357. KeyboardSpeed=<milliseconds>
  358.   Default: 31
  359.   Purpose: Establishes how much time elapses between
  360.            repetitions of a character on the display when
  361.            you hold down a keyboard key. This setting does
  362.            not work for all keyboards. If you delete this
  363.            setting from WIN.INI, Windows Setup will not set
  364.            this speed, but the speed will still be set if
  365.            you choose the Keyboard icon in Control Panel
  366.            (even if you cancel out of it).
  367.   To change: Choose the Keyboard icon from the Control Panel
  368.            window.
  369. ------------------------------------------------------------
  370. Load=<filename(s)>
  371.   Default: none
  372.   Purpose: Specifies one or more applications that are to be
  373.            run as icons when Windows is started. This
  374.            value is a list of one or more filenames of
  375.            applications, or documents that are associated
  376.            with an application, each separated by a space.
  377.   To change: Use Notepad to edit the WIN.INI file.
  378. ------------------------------------------------------------
  379. MouseSpeed=<0-or-1-or-2>
  380.   Default: 1
  381.   Purpose: Establishes the relationship between mouse
  382.            movement and cursor movement when the value of
  383.            either MouseThreshold1 or MouseThreshold2 is
  384.            exceeded. When this occurs, Windows causes cursor
  385.            movement to accelerate according to the value of
  386.            MouseSpeed. If it is 0, there is no acceleration.
  387.            If it is 1, the cursor is moved twice the normal
  388.            speed when mouse movement exceeds the value of
  389.            MouseThreshold1. If it is 2, the cursor is moved
  390.            twice the normal speed when mouse movement
  391.            exceeds the value of MouseThreshold1 or four
  392.            times the normal speed if mouse movement exceeds
  393.            MouseThreshold2.
  394.   To change: Choose the Mouse icon from the Control Panel
  395.            window.
  396. ------------------------------------------------------------
  397. MouseThreshold1=<pixels>
  398.   Default: 5
  399.   Purpose: Establishes the maximum number of pixels that
  400.            the mouse can move between mouse interrupts
  401.            before Windows alters the relationship between
  402.            mouse movement and cursor movement. If the mouse
  403.            movement exceeds this threshold and MouseSpeed is
  404.            greater than zero, Windows moves the cursor at
  405.            twice the normal speed.
  406.   To change: Choose the Mouse icon from the Control Panel
  407.            window.
  408. ------------------------------------------------------------
  409. MouseThreshold2=<pixels>
  410.   Default: 10
  411.   Purpose: Establishes the maximum number of pixels that
  412.            the mouse can move between mouse interrupts
  413.            before Windows alters the relationship between
  414.            mouse movement and cursor movement. If the mouse
  415.            movement exceeds this threshold and MouseSpeed is
  416.            equal to 2, Windows moves the cursor at four
  417.            times the normal speed.
  418.   To change: Choose the Mouse icon from the Control Panel
  419.            window.
  420. ------------------------------------------------------------
  421. NetWarn=<0-or-1>
  422.   Default: 1
  423.   Purpose: Specifies whether Windows should display a
  424.            warning message if your system is configured to
  425.            run a network and the network is not running or
  426.            the wrong network is running. All Windows
  427.            network-related options will be disabled if the
  428.            network is disabled or incorrect. Setting this
  429.            value to 0 will disable the warning message.
  430.   To change: Choose the Network icon from the Control Panel
  431.            window.
  432. ------------------------------------------------------------
  433. NullPort=<string>
  434.   Default: "None"
  435.   Purpose: Specifies the name used for a null port. This
  436.            name appears in the Printers-Configure dialog box
  437.            in Control Panel when a device is installed (that
  438.            is, the device driver is present) but is not
  439.            connected to any port. This value also appears
  440.            for such a device in the [devices] section of
  441.            WIN.INI.
  442.   To change: Use Notepad to edit the WIN.INI file.
  443. ------------------------------------------------------------
  444. Programs=<extensions>
  445.   Default: com exe bat pif
  446.   Purpose: Defines which files Windows regards as
  447.            applications. Extension names are separated by a
  448.            space and do not include the preceding periods.
  449.   To change: Use Notepad to edit the WIN.INI file.
  450. ------------------------------------------------------------
  451. Run=<filename(s)>
  452.   Default: none
  453.   Purpose: Tells Windows to run one or more specified
  454.            applications when Windows is started. The value
  455.            is a list of one or more filenames of
  456.            applications, or documents associated with
  457.            applications, each separated by a space.
  458.   To change: Use Notepad to edit the WIN.INI file.
  459. ------------------------------------------------------------
  460. Spooler=<yes-or-no>
  461.   Default: yes
  462.   Purpose: Specifies whether output to the printer is to be
  463.            sent through Print Manager. Changing this value
  464.            to no disables Print Manager.
  465.   To change: Choose the Printers icon from the Control Panel
  466.            window.
  467. ------------------------------------------------------------
  468. TransmissionRetryTimeout=<seconds>
  469.   Default: 45
  470.   Purpose: Specifies the default amount of time to give
  471.            Windows for attempted transmission retries. A
  472.            value is saved for each printer in the
  473.            [PrinterPorts] section. If a successful
  474.            transmission does not occur during this time,
  475.            Windows posts a message box stating that the
  476.            printer is not receiving characters.
  477.   To change: Use Notepad to edit the WIN.INI file. This
  478.            setting serves only as the system default value.
  479.            To change the value for a particular printer,
  480.            choose the Printers icon from the Control Panel
  481.            window. Using Control Panel changes the
  482.            corresponding value only in the [PrinterPorts]
  483.            section.
  484. ------------------------------------------------------------
  485. ------------------------------------------------------------
  486.  
  487. [DESKTOP] SECTION
  488.  
  489. The [desktop] section contains optional settings that
  490. control the appearance of the screen background (desktop)
  491. and the positioning of windows and icons on the screen.
  492.  
  493. The [desktop] section can contain the following settings:
  494.  
  495. ------------------------------------------------------------
  496. GridGranularity=<number>
  497.   Default: 0
  498.   Purpose: Specifies the size (in units of eight pixels)
  499.            of the grid that Windows uses to position
  500.            windows on the screen. The allowed range is 0
  501.            through 49.
  502.   To change: Choose the Desktop icon from the Control Panel
  503.            window.
  504. ------------------------------------------------------------
  505. IconSpacing=<pixels>
  506.   Default: 77
  507.   Purpose: Specifies the number of pixels that will appear
  508.            between icons. Increasing this number increases
  509.            the amount of space between icons.
  510.   To change: Choose the Desktop icon from the Control Panel
  511.            window.
  512. ------------------------------------------------------------
  513. Pattern=<b1 b2 b3 b4 b5 b6 b7 b8>
  514.   Default: "(None)"  (This string appears when no pattern
  515.                       is specified)
  516.   Purpose: Specifies a pattern that is used to paint the
  517.            screen background. The eight numeric values
  518.            define a bitmap eight pixels wide and eight
  519.            pixels high. Each decimal value represents a
  520.            byte, and each byte represents a row of eight
  521.            pixels. The following shows the effect of setting
  522.            a bit:
  523.  
  524.            Setting   Effect
  525.            -------   ------
  526.               0      Sets the corresponding pixel to the
  527.                      background color (specified by the
  528.                      Background setting in the [colors]
  529.                      section).
  530.  
  531.               1      Sets the corresponding pixel to the
  532.                      foreground color (specified by the
  533.                      WindowText setting in the [colors]
  534.                      section).
  535.  
  536.            For example, if you set the <b1> value to the
  537.            decimal value 175, the top row of pixels in the
  538.            bitmap will appear as the binary equivalent
  539.            (10101111) according to the preceding table.
  540.  
  541.   To change: Choose the Desktop icon from the Control Panel
  542.            window.
  543. ------------------------------------------------------------
  544. TileWallpaper=<0-or-1>
  545.   Default: 0
  546.   Purpose: Specifies whether to tile the desktop wallpaper
  547.            across the screen (set this value to 0) or to
  548.            center it (set this value to 1).
  549.   To change: Choose the Desktop icon from the Control Panel
  550.            window.
  551. ------------------------------------------------------------
  552. Wallpaper=<bitmap-filename>
  553.   Default: "(None)"  (This string appears when no pattern
  554.                       is specified)
  555.   Purpose: Supplies the name of a bitmap file. This bitmap
  556.            appears on the screen background. You need to
  557.            include the full pathname of the file if it is
  558.            not in the Windows or system directory.
  559.   To change: Choose the Desktop icon from the Control Panel
  560.            window.
  561. ------------------------------------------------------------
  562. WallpaperOriginX=<x-coordinate>
  563.   Default: 0
  564.   Purpose: Adjusts the initial offset of a tiled wallpaper.
  565.            The x-origin (default value) is the left side
  566.            of the screen.
  567. To change: Use Notepad to edit the WIN.INI file.
  568. ------------------------------------------------------------
  569. WallpaperOriginY=<y-coordinate>
  570.   Default: 0
  571.   Purpose: Adjusts the initial offset of a tiled wallpaper.
  572.            The y-origin (default value) is the top of the
  573.            screen.
  574.   To change: Use Notepad to edit the WIN.INI file.
  575. ------------------------------------------------------------
  576. ------------------------------------------------------------
  577.  
  578. [EXTENSIONS] SECTION
  579.  
  580. The [extensions] section contains settings that link groups
  581. of document files with an application so that opening one of
  582. the document files automatically starts the application.
  583.  
  584. The [extensions] section can contain settings of the
  585. following type:
  586.  
  587. ------------------------------------------------------------
  588. <extension>=<command-line>
  589.  
  590.   Purpose: Contains a list of filename extensions that
  591.            identify documents, and corresponding command
  592.            lines that are invoked when you choose a file
  593.            that has the associated extensions.
  594.  
  595.            The <extension> keyname is an extension of one to
  596.            three characters. The <command-line> value is an
  597.            ordinary DOS command line. The command line
  598.            always begins with an application filename (with
  599.            the .EXE extension). This can be followed by any
  600.            command parameters the application needs, usually
  601.            including the document filename. The caret (^)
  602.            character can be used when the original document
  603.            filename is needed in the command line; the caret
  604.            is replaced by the document filename without any
  605.            extension. The most typical <extension> entries
  606.            simply list the application name and the document
  607.            name; for example:
  608.  
  609.              CAL=CALENDAR.EXE ^.CAL
  610.  
  611.            If you run a file called MYFILE.CAL after this
  612.            association has been made, the Calendar progam
  613.            will start and automatically open the file named
  614.            MYFILE.
  615.  
  616.   To change: Choose Associate from the File menu in File
  617.            Manager.
  618.  
  619. ------------------------------------------------------------
  620. ------------------------------------------------------------
  621.  
  622. NOTE: See the WININI2.TXT file for the [intl], [ports],
  623.       [fonts], [PrinterPorts], [devices], [colors], and
  624.       [sounds] section listings.
  625.