how do i add stuff to the control panel?

S

Steven Wabik

i was wondering if anyone knew how to create their own control panel
applets. if anyone does, can they please tell me how to because i want to
know how to. there are certian things i want to add to the control panel,
like a shortcut to the Conventional User Account Interface. i want to add
other stuff as well.
 
K

Kelly

Use as an example: You will need a key generator.

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\CLSID\{98641F47-8C25-4936-BEE4-C2CE1298969D}]
@="User Accounts 2"
"InfoTip"="Starts The Windows 2000 style User Accounts dialog"

[HKEY_CLASSES_ROOT\CLSID\{98641F47-8C25-4936-BEE4-C2CE1298969D}\DefaultIcon]
@="%SystemRoot%\\\\System32\\\\nusrmgr.cpl,1"

[HKEY_CLASSES_ROOT\CLSID\{98641F47-8C25-4936-BEE4-C2CE1298969D}\Shell]

[HKEY_CLASSES_ROOT\CLSID\{98641F47-8C25-4936-BEE4-C2CE1298969D}\Shell\Open]

[HKEY_CLASSES_ROOT\CLSID\{98641F47-8C25-4936-BEE4-C2CE1298969D}\Shell\Open\command]
@="Control Userpasswords2"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel\NameSpace\{98641F47-8C25-4936-BEE4-C2CE1298969D}]
@="Add Userpasswords2 to Control Panel"


--

All the Best,
Kelly (MS-MVP/DTS&XP)

Taskbar Repair Tool Plus!
http://www.kellys-korner-xp.com/taskbarplus!.htm
 
S

Steven Wabik

ok... will you simlify that? i understand that, but now how do i add that
to the registry? and where do i get a key generator?
Kelly said:
Use as an example: You will need a key generator.

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\CLSID\{98641F47-8C25-4936-BEE4-C2CE1298969D}]
@="User Accounts 2"
"InfoTip"="Starts The Windows 2000 style User Accounts dialog"

[HKEY_CLASSES_ROOT\CLSID\{98641F47-8C25-4936-BEE4-C2CE1298969D}\DefaultIcon]
@="%SystemRoot%\\\\System32\\\\nusrmgr.cpl,1"

[HKEY_CLASSES_ROOT\CLSID\{98641F47-8C25-4936-BEE4-C2CE1298969D}\Shell]

[HKEY_CLASSES_ROOT\CLSID\{98641F47-8C25-4936-BEE4-C2CE1298969D}\Shell\Open]

[HKEY_CLASSES_ROOT\CLSID\{98641F47-8C25-4936-BEE4-C2CE1298969D}\Shell\Open\command]
@="Control Userpasswords2"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel\NameSpace\{98641F47-8C25-4936-BEE4-C2CE1298969D}]
@="Add Userpasswords2 to Control Panel"


--

All the Best,
Kelly (MS-MVP/DTS&XP)

Taskbar Repair Tool Plus!
http://www.kellys-korner-xp.com/taskbarplus!.htm


Steven Wabik said:
i was wondering if anyone knew how to create their own control panel
applets. if anyone does, can they please tell me how to because i want to
know how to. there are certian things i want to add to the control panel,
like a shortcut to the Conventional User Account Interface. i want to add
other stuff as well.
 
S

Steven Wabik

well, nevermind about how to add it to the registry. i know how to do that,
thanks to you giving me the proper information. now, the only thing i
dislislike about it is the icon it chose for it for when it was placed in
the control panel. how do i change the icon for it?i want the icon to match
the other "user accounts" control that is in control panel.
Kelly said:
Use as an example: You will need a key generator.

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\CLSID\{98641F47-8C25-4936-BEE4-C2CE1298969D}]
@="User Accounts 2"
"InfoTip"="Starts The Windows 2000 style User Accounts dialog"

[HKEY_CLASSES_ROOT\CLSID\{98641F47-8C25-4936-BEE4-C2CE1298969D}\DefaultIcon]
@="%SystemRoot%\\\\System32\\\\nusrmgr.cpl,1"

[HKEY_CLASSES_ROOT\CLSID\{98641F47-8C25-4936-BEE4-C2CE1298969D}\Shell]

[HKEY_CLASSES_ROOT\CLSID\{98641F47-8C25-4936-BEE4-C2CE1298969D}\Shell\Open]

[HKEY_CLASSES_ROOT\CLSID\{98641F47-8C25-4936-BEE4-C2CE1298969D}\Shell\Open\command]
@="Control Userpasswords2"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel\NameSpace\{98641F47-8C25-4936-BEE4-C2CE1298969D}]
@="Add Userpasswords2 to Control Panel"


--

All the Best,
Kelly (MS-MVP/DTS&XP)

Taskbar Repair Tool Plus!
http://www.kellys-korner-xp.com/taskbarplus!.htm


Steven Wabik said:
i was wondering if anyone knew how to create their own control panel
applets. if anyone does, can they please tell me how to because i want to
know how to. there are certian things i want to add to the control panel,
like a shortcut to the Conventional User Account Interface. i want to add
other stuff as well.
 
S

Steven Wabik

i noticed that in the powertoy ttweak UI by microsoft some of the control
panel shortcuts are .cpl files. instead of adding stuff to the control panel
via the registry i was wondering if there was a way to create .cpl files to
add stuff to the registry?
Steven Wabik said:
well, nevermind about how to add it to the registry. i know how to do
that, thanks to you giving me the proper information. now, the only thing
i dislislike about it is the icon it chose for it for when it was placed
in the control panel. how do i change the icon for it?i want the icon to
match the other "user accounts" control that is in control panel.
Kelly said:
Use as an example: You will need a key generator.

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\CLSID\{98641F47-8C25-4936-BEE4-C2CE1298969D}]
@="User Accounts 2"
"InfoTip"="Starts The Windows 2000 style User Accounts dialog"

[HKEY_CLASSES_ROOT\CLSID\{98641F47-8C25-4936-BEE4-C2CE1298969D}\DefaultIcon]
@="%SystemRoot%\\\\System32\\\\nusrmgr.cpl,1"

[HKEY_CLASSES_ROOT\CLSID\{98641F47-8C25-4936-BEE4-C2CE1298969D}\Shell]

[HKEY_CLASSES_ROOT\CLSID\{98641F47-8C25-4936-BEE4-C2CE1298969D}\Shell\Open]

[HKEY_CLASSES_ROOT\CLSID\{98641F47-8C25-4936-BEE4-C2CE1298969D}\Shell\Open\command]
@="Control Userpasswords2"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel\NameSpace\{98641F47-8C25-4936-BEE4-C2CE1298969D}]
@="Add Userpasswords2 to Control Panel"


--

All the Best,
Kelly (MS-MVP/DTS&XP)

Taskbar Repair Tool Plus!
http://www.kellys-korner-xp.com/taskbarplus!.htm


Steven Wabik said:
i was wondering if anyone knew how to create their own control panel
applets. if anyone does, can they please tell me how to because i want to
know how to. there are certian things i want to add to the control panel,
like a shortcut to the Conventional User Account Interface. i want to add
other stuff as well.
 
A

alanglloyd

i noticed that in the powertoy ttweak UI by microsoft some of the control
panel shortcuts are .cpl files. instead of adding stuff to the control panel
via the registry i was wondering if there was a way to create .cpl files to
add stuff to the registry?

You create a DLL and in the code you export a function named
CPLApplet. This function has a declaration (in Delphi) of ...

function CPlApplet(hwndCPl: THandle; uMsg: DWORD;
lParam1, lParam2: Longint): Longint; stdcall;

In the function code you must handle uMsg (again in Delphi) of ...

const
NUM_APPLETS = 1;
intTrue = integer(true);
intFalse = integer(false);

case uMsg of
CPL_INIT : Result := intTrue;
CPL_GETCOUNT : Result := NUM_APPLETS;
CPL_INQUIRE :
begin
lParam1 := 0;
with PCPlInfo(lParam2)^ do begin
{resource identifiers in the control panel applet see
below for typical}
idName := 1;
idInfo := 2;
idIcon := 3;
end;
Result := intTrue;
end;
CPL_SELECT : Result := intFalse;
CPL_DBLCLK :
// This calls the display of the form you have coded for the
CP applet
CPL_STOP : Result := intFalse;
CPL_EXIT : Result := intFalse;
CPL_NEWINQUIRE : Result := intFalse;
else Result := intFalse;
end;

Typical resource content file (*.RC sent to a resource compiler)
contains references for the displayed applet name, the info tip, and
the icon in the resource, typically ...

STRINGTABLE
{
1, "Control Panel Applet"
2, "My First Control Panel Applet"
}
3 ICON "..\Icons\My CP Applet.ico"

When you have created the DLL, then you rename it to a .cpl and place
it in the <windows>\System\System32 folder. The OS will pick it up
from there and diaplay it in Control Panel.

Google for "CPApplet" and your favourite language, and you'll get
something described in that langauge.

Alan Lloyd
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top