No, it's used to find the ProgID of the associated application, not just for finding icons, but also to find the default verb if the application when double clicking it, and for checking whether the associated application is the Microsoft Photos app. This app needs to be launched in a different way to be able to browse through all files in the same directory.
Previously I was checking the UserChoice registry key (and a few more) to find the associated application. However, this key sometimes contained the ProgID of an older version of the app which couldn't be found under HKEY_CLASSES_ROOT. AssocQueryStringW returns the ProgID of the actually installed version.
Moderator message from: ghisler(Author) » 2024-11-14, 08:26 UTC
Moved to will not be changed