Show a list of installed applications

When you click the right button on the image with "My Computer", Windows displays a list of installed applications associated with this type of file "OPEN with ..." how to get the same list of programs using WinAPi and create a function in C ++

+4
source share
2 answers

MSDN states that "By default, any application registered as an organizational unit HKEY_CLASSES_ROOT\Applicationsis presented in the Open With dialog box.".

However, two exceptions are listed: A NoOpenWithsubkey (empty REG_SZ) removes the application from the Open With dialog box. A SupportedTypeskey with a list of extensions restricts the application to only matching Open with dialog boxes.

Note that HKCRis a virtual bush formed by merging the corresponding parts HKCUand HKLM.

+1
source

The menu "Open with ..." is located in the registry key:, HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExtsfrom there you can create some functions for extracting data. MSDN has many registry functions for getting / setting values, as well as for moving trees.

( , ), , , , , ( SO, ).

, .

0

All Articles