SAMPLE: Control Panel Application Sample
PSS ID Number: Q102486
Article last modified on 04-23-1994

3.10

WINDOWS NT


----------------------------------------------------------------------
The information in this article applies to:

 - Microsoft Win32 Software Development Kit (SDK) for Windows NT
   version 3.1
----------------------------------------------------------------------

The CPL sample demonstrates the creation how to create a Control Panel
application.

The CPlApplet function is for a dynamic-link library (DLL) containing three
Control Panel applications that set preferences for a component stereo
system attached to the computer. The sample uses an application-defined
StereoApplets array that contains three structures, each corresponding to
one of the Control Panel applications. Each structure contains all the
information required by the CPL_NEWINQUIRE message, as well as the dialog
box template and dialog box procedure required by the CPL_DBLCLK message.
The code demonstrates how to fill the structures in the StereoApplets
array.

To install your new DLL, copy the .CPL file into your SYSTEM32 directory
and the Control Panel will automatically load the DLL upon startup.

This sample is included with the Microsoft Win32 Software Development Kit
(SDK) for Windows NT. Samples are divided into two groups: samples
(optionally) installed into the \MSTOOLS\SAMPLES directory, and small
samples available on the CD in the \Q_A\SAMPLES directory.

Additional reference words: 3.10
KBCategory: Prg
KBSubcategory: CodeSam UsrMisc

=============================================================================

Copyright Microsoft Corporation 1994.
