Microsoft KB Archive/256244

{|
 * width="100%"|

HOWTO: Add Control Panel to a Minimal Operating System Build

 * }

Q256244

-

The information in this article applies to:


 * Microsoft Windows NT Embedded 4.0

-

SUMMARY
This article describes how to add Control Panel and its applications (applets) to a configuration containing the minimal operating system (OS) component in Windows NT Embedded.

This technique is not necessary for standard OS configurations, because the standard OS component contains Control Panel and it applications.

This technique does not add the Network application to Control Panel. Please see the "References" section for details on how to add the Network application.

Microsoft provides programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This article assumes that you are familiar with the programming language being demonstrated and the tools used to create and debug procedures. Microsoft support professionals can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific needs. If you have limited programming experience, you may want to contact a Microsoft Certified Partner or the Microsoft fee-based consulting line at (800) 936-5200. For more information about Microsoft Certified Partners, please see the following page on the World Wide Web:

"http://www.microsoft.com/partner/referral/" For more information about the support options available from Microsoft, please see the following page on the World Wide Web:

"http://support.microsoft.com/directory/overview.asp"

MORE INFORMATION
To include Control Panel and its applications in your configuration, please follow these steps:

  Copy the following text into a file named ControlPanel.kdf: [Version] Signature = "$Windows NT$" KdfVersion = 1

[Header] Name = Control Panel Version = 1.0 ReleaseDate = 03/31/2000 Vendor = Microsoft OS = WINNT OSVersion = 4.0 Platform = i386 Repository = "%WINNT%" Description = "Control Panel for Minimal Builds" CodePage = 1252

[Capabilities] 1 = "ControlPanel", %ROOT%\Applications

[Components] 1 = "Control Panel", "The Control Panel executable", 1 2 = "Minimal OS" 3 = "Standard OS"

[CapabilityDependencies]

[CapabilityComponentDependencies]

[ComponentCapabilityDependencies]

[ComponentDependencies] 1,2,Y 1,3,N

[Directories] 2 = "\winnt\system32" 3 = "\Repository\i386"

[Control Panel.Files] "CONTROL.EXE", 3, 2, 2068, "CONTROL.EXE"

[Control Panel.RegistryAdditions]   Copy the following text into a file called Applets.kdf: [Version] Signature = "$Windows NT$" KdfVersion = 1

[Header] Name = Control Panel Applets Version = 1.0 ReleaseDate = 03/31/2000 Vendor = Microsoft OS = WINNT OSVersion = 4.0 Platform = i386 Repository = "%WINNT%" Description = "Control Panel Applets" CodePage = 1252

[Capabilities] 2 = "ControlPanel"

[Components] 1 = "Applets", "Control Panel Applets", 2 2 = "Control Panel"

[CapabilityDependencies]

[CapabilityComponentDependencies]

[ComponentCapabilityDependencies]

[ComponentDependencies] 1,2,Y

[Directories] 1 = "\winnt\system32" 3 = "\Repository\i386"

[Applets.Files] "WGPOCPL.CPL", 3, 1, 7372, "WGPOCPL.CPL" "desk.cpl", 3, 1, 164112, "desk.cpl" "devapps.cpl", 3, 1, 305936, "devapps.cpl" "dtccfg.cpl", 3, 1, 28432, "dtccfg.cpl" "fpnwmgr.cpl", 3, 1, 138272, "fpnwmgr.cpl" "intl.cpl", 3, 1, 74000, "intl.cpl" "liccpa.cpl", 3, 1, 95504, "liccpa.cpl" "mmsys.cpl", 3, 1, 214288, "mmsys.cpl" "modem.cpl", 3, 1, 96016, "modem.cpl" "msmq.cpl", 3, 1, 62224, "msmq.cpl" "odbccp32.cpl", 3, 1, 13312, "odbccp32.cpl" "ports.cpl", 3, 1, 35600, "ports.cpl" "rascpl.cpl", 3, 1, 10512, "rascpl.cpl" "sysdm.cpl", 3, 1, 93456, "sysdm.cpl" "timedate.cpl", 3, 1, 53008, "timedate.cpl" "ACCESS.CPL", 3, 1, 19304, "ACCESS.CPL" "APPWIZ.CPL", 3, 1, 27922, "APPWIZ.CPL" "CONSOLE.CPL", 3, 1, 20669, "CONSOLE.CPL" "EGA.CPL", 3, 1, 14359, "EGA.CPL" "INETCPL.CPL", 3, 1, 5357, "INETCPL.CPL" "JOY.CPL", 3, 1, 21099, "JOY.CPL" "MAIN.CPL", 3, 1, 23421, "MAIN.CPL" "MLCFG32.CPL", 3, 1, 20948, "MLCFG32.CPL" "NWC.CPL", 3, 1, 18289, "NWC.CPL" "SFMMGR.CPL", 3, 1, 46927, "SFMMGR.CPL" "SRVMGR.CPL", 3, 1, 56316, "SRVMGR.CPL" "TELEPHON.CPL", 3, 1, 1887, "TELEPHON.CPL" "UPS.CPL", 3, 1, 14566, "UPS.CPL" "bhctrl.cpl", 3, 1, 26288, "bhctrl.cpl"

[Applets.RegistryAdditions]  Modify the following lines in the [Directories] section of each file to reflect the location of your source repository: In Target Designer, click Tools, and then click Component Management. In the Component Management dialog box, click Add and then select the ControlPanel.kdf file you created in step 1. Click OK. In the Component Management dialog box, click Add and then select the Applets.kdf file you created in step 2. Click OK. In the Component Management dialog box, click OK.</li></ol>

Your configurations should now have a Control Panel menu item under Accessories, with Control Panel and Applets components.

You can also modify the [Applets.Files] section of the Applets.kdf file to tailor the applications list presented in Control Panel.