[Question] Making Control Panel Extension thru Registry

Discuss & post Update Pack addons here.
Post Reply
hmaster10
Posts: 5
Joined: Thu Jun 01, 2006 12:04 pm
Location: Philippines

[Question] Making Control Panel Extension thru Registry

Post by hmaster10 » Sun Feb 04, 2007 7:22 pm

I'm planning to learn how to make one. but making the existing addons under Control Panel Extensions are confusing. May I know what is a good place to read info about it?

also, Can I just put any CLSID in there?

User avatar
ricktendo64
Posts: 3213
Joined: Mon May 22, 2006 12:27 am
Location: Honduras

Post by ricktendo64 » Sun Feb 04, 2007 7:47 pm

Download and Modify one of Kels, here is one of mine:
[CPL.AddReg]
HKCR,"CLSID\%CLSIDx%"
HKCR,"CLSID\%CLSIDx%",,,"xp-AntiSpy"
HKCR,"CLSID\%CLSIDx%","InfoTip",,"Its a neat little utility to automatically apply different settings to the Operating System."
HKCR,"CLSID\%CLSIDx%\DefaultIcon",,,"%11%\xp-AntiSpy.exe"
HKCR,"CLSID\%CLSIDx%\Shell\Open"
HKCR,"CLSID\%CLSIDx%\Shell\Open\command",,,"xp-AntiSpy.exe"
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel\NameSpace\%CLSIDx%"
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel\NameSpace\%CLSIDx%",,,"Add xp-AntiSpy to Control Panel"

[Strings]
CLSIDx="{D14ED2E1-C75B-443c-BD7C-222222222222}"
Just change the last Twelve numbers of the CLSID, Kel is 1 Im number 2 I think MrNxDmX is number 4... Number 3 is available I think Ask Kel He is the first to make em so its up to him what number you are

User avatar
Kelsenellenelvian
Moderator
Posts: 4383
Joined: Tue Nov 30, 2004 8:32 pm
Location: Pocatello, ID
Contact:

Post by Kelsenellenelvian » Sun Feb 04, 2007 11:37 pm

#3 is fine with me...

im-pulze
Posts: 9
Joined: Sat Mar 15, 2008 3:43 pm
Location: Germany

Post by im-pulze » Fri Oct 03, 2008 5:53 am

how bout a tutorial coz I dont want keep bothering Kel with requests
(coz I want bout 10 CPL-addons and dont want to stress him with 10 requests)
So I can build them myself

User avatar
code65536
Posts: 735
Joined: Wed Mar 14, 2007 2:58 pm
Location: .us
Contact:

Post by code65536 » Fri Oct 03, 2008 8:30 am

Um, you are supposed to generate a new UUID randomly for use as your CLSID. Unless there is a specific need to do so (and there is no such need in this case), you should never generate a new UUID by just incrementing numbers or by modifying an existing UUID. It's a 128-bit number, which means that collisions from random generations are, for all practical intents and purposes, impossible, and that the pool of available IDs is, for all practical intents and purposes, infinite. The whole idea behind using so many bits is so that you can just randomly generate IDs for use without any worry about conflicts--there's no need to clear an ID with anyone. Microsoft's freely-available Platform SDK provides two random UUID generators: uuidgen (command line version) and guidgen (GUI version). A version of uuidgen ships with many Linux distros, and there are even websites that will generate random new UUIDs for you (Google). Generating a new UUID is very easy; there is no reason to re-use (or partially re-use) an existing UUID for your CLSID, so don't do it.

(So to answer the initial question, yes, you can use any UUID for the CLSID, as long as it's a new randomly-generated one; do not re-use an existing one!)
My addons: CmdOpen - HashCheck - Notepad2 - MS Runtimes - DirectX

Into the breach, meatbags!

User avatar
*Reaper*
Posts: 594
Joined: Sat Feb 04, 2006 11:01 am

Post by *Reaper* » Sat Oct 04, 2008 11:11 am

Kelsenellenelvian wrote:#3 is fine with me...
Umm.. I've been using #3

Hey Kel.. Below is a quote from WinCert that you sent to me....
Kelsenellenelvian wrote:CLSID7 ="{D14ED2E1-C75B-443c-BD7C-111111111115}"

ok the last section is a made up number I invented the way to do it.

Rick came next so he got to choose #22222222222222

So you can have 33333333333333

Just please stay away from 1111111111 and 2222222222
Just wanted to point it out, so we didn't run into any conflicts....

TechnoHunter
Posts: 506
Joined: Sun Feb 26, 2006 4:13 am

Post by TechnoHunter » Sun Oct 05, 2008 2:44 am

@Reaper :: you do know the post that you are replying to of Kel's is over a year and a half old right?

just follow code's advise and you will NEVER have a problem :) the odds of you using the same CLSID as another person using a real generator is less than you winning the lottery -evil grin-

-wave- have fun!

TechnoHunter

User avatar
code65536
Posts: 735
Joined: Wed Mar 14, 2007 2:58 pm
Location: .us
Contact:

Post by code65536 » Sun Oct 05, 2008 3:04 am

TechnoHunter wrote: the odds of you using the same CLSID as another person using a real generator is less than you winning the lottery
That's quite an understatement, given that your chances of winning the lottery jackpot is well over a billion times greater than your chances of getting a random collision with a 128-bit number. ;) When I said that random collisions are, for all intents and purposes, impossible, I really meant it. :)
My addons: CmdOpen - HashCheck - Notepad2 - MS Runtimes - DirectX

Into the breach, meatbags!

x-force
Posts: 31
Joined: Tue Feb 19, 2008 4:29 pm

Post by x-force » Mon Oct 06, 2008 10:15 pm

I want to my extension in private folder under control panel.(folder name is : PCTools etc.. ) Possible ? I can try, but fail..

Post Reply