Get List of all Control Panel Applets,...

  • Thread starter Thread starter Kerem Gümrükcü
  • Start date Start date
K

Kerem Gümrükcü

Hi,

I know this is not a pure C# question but its something
i need in my application for a special purpose.
From where in the os can i get a list of all installed conrol
Panel items and the full path to them and if possible the
icon or icons index in the dll, cpl or whatever file?

There is a example in the msdn, but it needs the
full directory for the cpls in this case the \WINDIR\system32
but i need to get ALL cpls listed in the Control Panel Folder
of Windows,...

Whats the best way to do that,...

This is the msdn example:
http://support.microsoft.com/kb/232536/en-us

Regards

Kerem
 
The best way would be to enumerate the children of the IShellFolder
representing the Control Panel folder but it gets messy in interop.
First you need to bind to Control Panel from Desktop's ishellfolder (gotten
using SHGetDesktop), then call EnumObjects.

---------
- G Himangi, LogicNP Software http://www.ssware.com
Shell MegaPack: GUI Controls For Drop-In Windows Explorer like File/Folder
Browsing Functionality (.Net & ActiveX Editions).
EZNamespaceExtensions: Develop namespace extensions rapidly in .Net and
MFC/ATL/C++
EZShellExtensions: Develop all shell extensions,explorer bars and BHOs
rapidly in .Net & MFC/ATL/C++
 
Hi G Himangi,

thanks for your reply. Do you have a example for me,
how i can do this in C#,...

Regards

Kerem
 
Back
Top