The information in this article applies to:
SUMMARY
This article describes the relationship of .CPL files and the icons that
appear in the Microsoft Windows and Microsoft Windows for Workgroups
Control Panel. This article includes information on the following:
MORE INFORMATIONDescription of .CPL FilesYou can add additional icons and functionality to the Control Panel in Windows 3.1 and Windows for Workgroups versions 3.1 and 3.11 by adding "installable" .CPL files. These .CPL files must be located in the Windows SYSTEM directory or the corresponding icon does not appear in the Control Panel. However multimedia .CPL files can be referenced in another directory by specifying a new path in the [MMCPL] section of the CONTROL.INI file.You should design and structure the .CPL file to conform to the CPLINFO specification as outlined in the Microsoft Windows Programmer's reference. Simply attaching a .CPL extension to a file of unspecified format doesn't work. The CPLINFO specification contains information concerning the icon, application or device name, identification numbers, and other data. NOTE: If VER.DLL is missing from the WINDOWS or Windows SYSTEM directory, only the 386 Enhanced icon and the Sound icon appear in Control Panel. Replacement of Control Panel IconsWhen you run the Control Panel in Windows 3.1 or Windows for Workgroups (WFWG), some of the icons may not display if the corresponding .CPL file is corrupt or missing. To correct this problem, you must expand the files from the Windows disks back to the Windows SYSTEM directory. Note that the network icon does not display if the network is not properly installed. This is not a problem with the MAIN.CPL, but with the network installation.Use the following steps to add a missing Control Panel icon:
Default .CPL Files Shipped with Windows 3.1Windows 3.1 ships with the following four "installable" Control Panel objects.
NOTE: The Windows Driver Library disks include an additional .CPL
file, SBPMIXER.CPL (file size 25792, dated 2/1/92), for computers with
Creative Labs Sound Blaster Pro sound cards. This icon is an
audio-mixing board for the Sound Blaster Pro.
"Cannot Find Control Panel Components" Error MessageThe Windows 3.1 or Windows for Workgroups 3.1 and 3.11 Control Panel (CONTROL.EXE) may return the following message upon execution:This error usually occurs when the .CPL files cannot be found in the SYSTEM directory, or if the files have become corrupt. First, you should confirm existence of the following .CPL files in your Windows SYSTEM directory: CPWIN386.CPLIf any file is missing, you need to expand it from your Windows disks. If all files are there, then it is possible that the files are corrupted. In this case you should exit Windows, delete all of the SYSTEM\*.CPL files, then expand each .CPL from your Microsoft Windows disks into your Windows SYSTEM subdirectory, as described in this article. Using a .CPL File Icon ElsewhereThe Windows version 3.1 Control Panel contains only one icon embedded in the executable file CONTROL.EXE. If an embedded icon from the Windows 3.0 CONTROL.EXE file is used as a replacement icon for a program item, a similar Windows 3.1 icon may be located in one of the Control Panel data files (*.CPL).Because of the modular structure of the Windows 3.1 Control Panel, most icons that were embedded in earlier versions of the CONTROL.EXE file have been moved to different associated data files located in the SYSTEM subdirectory. These files include CPWIN386.CPL, DRIVERS.CPL, MAIN.CPL, and SND.CPL. To use one of the icons placed in the .CPL files for a program item in Windows 3.1, use the following steps:
Multimedia Settings in the CONTROL.INIThe [MMCPL] section of the CONTROL.INI file contains information which concerns the size and placement of the Control Panel window, the number of iconized applications in the Control Panel, and a path setting for multimedia .CPL files residing outside of the Windows SYSTEM subdirectory. The settings include:
In addition Microsoft Windows for Pen Computing may add the following
lines to the [MMCPL] file:
These entries allow the Control Panel to find .CPL file in
subdirectories other than the Windows SYSTEM subdirectory.
GP Faults in Control PanelIf you experience general protection (GP) faults when opening Control Panel, it is likely that one of the .CPL files is corrupted or damaged. Please follow the instructions in the previous section of this article to replace the icon.Missing Control Panel IconsIf KRNL386.EXE is in the Windows directory instead of, or in addition to, the Windows\SYSTEM subdirectory, one or more of the Control Panel icons may not appear. KRNL386.EXE should be in only the Windows\SYSTEM subdirectory.REFERENCES
"Microsoft Windows Programmer's Reference, Volume3: Messages,
Structures, and Macros," version 3.1, pgs. 260, 543-549.
Additional query words: gpf 3.0 3.10 lost loss gone penwin *.cpl program item properties adding soundblaster
Keywords : win31 winshell wfwg |
Last Reviewed: October 22, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |