• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 439
  • Last Modified:

Making a Control Panel Applet appear in WSC

I've made a CPL applet to configure my application and added it to the windows control panel.So far I have assigned it to 2 categories in WXP SP2 yet it only appears in one of them.

I cannot make it appear in Windows Security Center. I have tried everthing MSDN says, and all works fine but the icon doesn't appear in WSC category. Currently I'm just programming the applet to launch my configuration program but currently it appears in Control Panel in classic view or in other categories if I assign it to them - just not the WSC

I have used this as my main reference so far http://msdn.microsoft.com/library/en-us/shellcc/platform/shell/programmersguide/shell_adv/conpanel.asp?frame=true#Control_Panel_Categories

The actual cpl works fine from the other categories and if you modify the registry and assign other CPLs to WSC category (0xA) it will not appear there.

Any advice?
0
bboitano
Asked:
bboitano
  • 9
  • 6
1 Solution
 
armeenCommented:
it works for me, I add the registry key:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Control Panel\Extended Properties\{305CA226-D286-468e-B848-2B2E8E697B74} 2\

%SystemRoot%\System32\Applet.cpl    DWORD= 0xA    ( OR REG_SZ="10" )

and it shows it - also I am able to add existing ones.

ed
0
 
armeenCommented:
just a thought, have you got conflicting information in HKCU and HKLM ??
0
 
bboitanoAuthor Commented:
armeen ,

Thanks for your reply. I can find no conflicts in the registry and the steps you outline above do not work for me here.

Anything else you can think of that I might be missing?

Thanks
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
armeenCommented:
i'm not sure because I can add any other applet as I want, the article does mention that you can restrict the settings with the control.ini - do you have anything in there?

also what version of shell32.dll do you have?  I have 6.0.2900.2578 - maybe you have an older or a newer version of this?
0
 
bboitanoAuthor Commented:
armeen,

Again thank you for your reply.

Would you be so kind as to verify that you can assign these CPLs: "bthprops.cpl, irprops.cpl, ncpa.cpl, odbccp32.cpl, sticpl.cpl"  to the 0xA category?

Here I can assign other CPLs to the 0xA category (unfortunately the brief check I did used those ones!) yet for some reason these will not go into WSC

Many thanks again armeen,

bb
0
 
armeenCommented:
your right, none of these work on mine either.  Does it work with sysdm.cpl, wuaucpl.cpl, inetcpl.cpl, desk.cpl - these all work for me (as well as a 3rd party one i have in there)
0
 
bboitanoAuthor Commented:
Yes armeen, they do work here too.

So now to find out why they do and the others don't.

Cheers
0
 
armeenCommented:
that is the question indeed - can you export:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Control Panel\Extended Properties\{305CA226-D286-468e-B848-2B2E8E697B74} 2\

I want to import it into my registry to see if it breaks mine.

ed
 
0
 
armeenCommented:
ncpa and odbc fail on my machine because of entries:

HKEY_CURRENT_USER\Control Panel\don't load

0
 
bboitanoAuthor Commented:
Here you go armeen

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Control Panel\Extended Properties\{305CA226-D286-468e-B848-2B2E8E697B74} 2]
"%SystemRoot%\\system32\\appwiz.cpl"=dword:00000008
"%SystemRoot%\\system32\\access.cpl"=dword:00000007
"%SystemRoot%\\system32\\desk.cpl"=dword:00000001
"%SystemRoot%\\system32\\hdwwiz.cpl"=dword:ffffffff
"%SystemRoot%\\system32\\inetcpl.cpl"="3,10"
"%SystemRoot%\\system32\\intl.cpl"=dword:00000006
"%SystemRoot%\\system32\\irprops.cpl"=dword:00000002
"%SystemRoot%\\system32\\joy.cpl"=dword:00000002
"%SystemRoot%\\system32\\main.cpl"=dword:00000002
"%SystemRoot%\\system32\\mmsys.cpl"=dword:00000004
"%SystemRoot%\\system32\\ncpa.cpl"=dword:00000003
"%SystemRoot%\\system32\\nwc.cpl"=dword:00000000
"%SystemRoot%\\system32\\nusrmgr.cpl"=dword:00000009
"%SystemRoot%\\system32\\odbccp32.cpl"=dword:00000000
"%SystemRoot%\\system32\\powercfg.cpl"=dword:00000005
"%SystemRoot%\\system32\\sticpl.cpl"=dword:00000002
"%SystemRoot%\\system32\\sysdm.cpl"="5"
"%SystemRoot%\\system32\\timedate.cpl"=dword:00000006
"%SystemRoot%\\System32\\Firewall.cpl"="3,10"
"%SystemRoot%\\System32\\NetSetup.cpl"=dword:00000003
"%SystemRoot%\\System32\\wuaucpl.cpl"=dword:0000000a
"%SystemRoot%\\System32\\bthprops.cpl"="2,3"
"%SystemRoot%\\System32\\wscui.cpl"=dword:ffffffff
"%SystemRoot%\\system32\\telephon.cpl"=dword:00000002
"%SystemRoot%\\System32\\MyCPL.cpl"="3,10"

However my don't load section is completely empty so that cannot be the reason it fails here :(

Thanks again for looking
bb
0
 
armeenCommented:
I tried your reg settings on my machine and it shows the default, if I add date and time cpl then it shows it in the security section.

All I can think of is doing a regmon (filter for "rundll32.exe:*" ) and see what reg keys it reads and if there are any errors - maybe this will point in the right direction.

Also if you can upload your cpl file somewhere i can test it but I am pretty sure it is going to work.

ed
0
 
bboitanoAuthor Commented:
ed,

Unfortunately I can't give you a copy of the cpl (NDA). I will try running regmon and see if it gives any more clues as to why.

timedate works fine here too - its just mine and the other ones mentioned that don't work for some reason.

Lets hope that we can find out what the other ones have in common that prevent them appearing in WSC and that it is a property that they have in common with mine.

Again - thank you for your efforts on this.

bb
0
 
armeenCommented:
how about renaming your one to the same as one that works like the time date one, does it work then?

0
 
bboitanoAuthor Commented:
armeen - sorry for the daly in getting back to you.

No that didn't work either I'm afraid

bb
0
 
armeenCommented:
I wrote a test applet here and it works fine, have you tried it on any machines apart from your own?

To be honest I don't really know what to suggest, other than trying it on another machine and seeing if you have the same version of shell32 as me (  6.0.2900.2578 ).

ed
0

Featured Post

What Security Threats Are We Predicting for 2018?

Cryptocurrency, IoT botnets, MFA, and more! Hackers are already planning their next big attacks for 2018. Learn what you might face, and how to defend against it with our 2018 security predictions.

  • 9
  • 6
Tackle projects and never again get stuck behind a technical roadblock.
Join Now