Article ID: 86023 - Last Review: September 24, 2011 - Revision: 2.0 Control Panel .CPL Files and Icon Installation
This article was previously published under Q86023 On This PageSUMMARY
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.
Compressed Expanded
Name Size Name Size Icon
--------------------------------------------------------------------
CPWIN386.CP_ 48841 CPWIN386.CPL 104816 Control Panel's 386
Enhanced Mode icon
DRIVERS.CP_ 21385 DRIVERS.CPL 41440 Control Panel's Drivers
icon for installing and
removing Multimedia
drivers
MAIN.CP_ 89396 MAIN.CPL 148560 Control Panel's
Color, Fonts,
Ports, Mouse,
Desktop, Keyboard,
Printers,
International Date/Time,
Network (if installed)
icons
SND.CP_ 4986 SND.CPL 8192 Control Panel's Sound
icon, which allows you
to assign sounds to
many system events
"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:
Cannot find the Control Panel components (files
with .CPL extension).
Verify that they are installed in your Windows SYSTEM directory. <OK>
CPWIN386.CPL
If 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.
DRIVERS.CPL MAIN.CPL SND.CPL WFWSETUP.CPL <=== Windows for Workgroups version 3.1 only. 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:
Setting Description
--------------------------------------------------------
x=<number> Horizontal window coordinate
y=<number> Vertical window coordinate
h=<number> Height in pixels
w=<number> Width in pixels
numapps=<number> The number of applications in the
Control Panel
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.
"Microsoft Windows for Pen Computing: Programmer's Reference, Windows Software Development Kit," version 3.1, pgs. 288-289.
| Other Resources Other Support Sites
CommunityArticle Translations |






Windows Live
Facebook
Twitter
Linkedin
Digg it
Yahoo
Delicious
StumbleUpon
Yammer
Reddit
Technorati
FriendFeed
Email
Back to the top