|
tech
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
how do i add stuff to the control panel?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. 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" -- Show quoteAll the Best, Kelly (MS-MVP/DTS&XP) Taskbar Repair Tool Plus! http://www.kellys-korner-xp.com/taskbarplus!.htm "Steven Wabik" <Steven***@verizon.net> wrote in message news:uYyELzLGIHA.936@TK2MSFTNGP06.phx.gbl... >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. > 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? Show quote "Kelly" <ke***@mvps.org> wrote in message news:eyPv3VMGIHA.1208@TK2MSFTNGP05.phx.gbl... > 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" <Steven***@verizon.net> wrote in message > news:uYyELzLGIHA.936@TK2MSFTNGP06.phx.gbl... >>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. >> > > 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. Show quote "Kelly" <ke***@mvps.org> wrote in message news:eyPv3VMGIHA.1208@TK2MSFTNGP05.phx.gbl... > 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" <Steven***@verizon.net> wrote in message > news:uYyELzLGIHA.936@TK2MSFTNGP06.phx.gbl... >>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. >> > > 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? Show quote "Steven Wabik" <Steven***@verizon.net> wrote in message news:ed7JZuOGIHA.6068@TK2MSFTNGP05.phx.gbl... > 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" <ke***@mvps.org> wrote in message > news:eyPv3VMGIHA.1208@TK2MSFTNGP05.phx.gbl... >> 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" <Steven***@verizon.net> wrote in message >> news:uYyELzLGIHA.936@TK2MSFTNGP06.phx.gbl... >>>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. >>> >> >> > > On Nov 4, 7:38?pm, "Steven Wabik" <Steven***@verizon.net> wrote: You create a DLL and in the code you export a function named> 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? 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 |
|||||||||||||||||||||||