How to Get Control Panel Categories (Groups) on Windows Vista and Windows 7

六月ゝ 毕业季﹏ 提交于 2020-01-07 04:52:27

问题


Is there a way to get a listing of control panel categories on Windows Vista and Windows 7 using the shell?

Is there a way to determine which category an applet is assigned to using conical Names using the shell?

such as Microsoft.Mouse is in which category?

I have some code that works nicely to display control panel applet names obtained from the shell in a TListView in a Vista Classic ungrouped list.

I'd like to try to group the applet names in the TListView similar to Control Panel Classic Grouped by Category in Vista.

Bill


回答1:


According to MSDN, you could read the System.ControlPanel.Category value for standalone executables and (on Vista and later) subkeys of the Extended Properties key for DLL items from the registry:

Registering Control Panel Items

Assigning Control Panel Categories




回答2:


Why not hardcode them? I noticed that custom applets are placed in "Others" or something like that group, so you need to worry only about standard ones.



来源:https://stackoverflow.com/questions/2924209/how-to-get-control-panel-categories-groups-on-windows-vista-and-windows-7

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!