How to get information from a .CPL?

11

I wanted to make a program that would display all control panel items. For this I need to query some registry keys, but there are programs that still use cpl files to store the information.

I've heard that cpl are DLL's written in C ++ but I do not quite understand C ++ to understand the structure. I found a topic in the MSDN link that shows the but I do not know how to do an intermediate between cpl, which is a dll written in C ++, with my project in C #.

I wanted to give me an example of a code that looks at Assembly.cpl for example, and return the item name in Control Panel, the description text, and the icon (if possible, extract from the assembly to a temporary folder , or if it is the case, return the .ico address).

I know it's too much to ask, but if you help me you'll be breaking me a gallon.

    
asked by anonymous 30.01.2015 / 21:21

1 answer

1

One way is to use the properties of the file. If you get the properties of the file as cpl, something like "Control Panel Item" will come up, however, if you copy the CPL by changing the extension to DLL, you can pick up.

I took for example the CPL: powercfg.cpl I made a copy renaming to powercfg.cpl.dll

Instead of the previous file description, now came: "Power Management Configuration Control Panel Applet"

There is a file in the English version of StackOverflow, which can be accessed by link that demonstrates a function (GetFileTypeDescription) using the Windows DLL shell32.dll.

I hope I have helped.

Abs

    
26.02.2015 / 16:00