Enumerating items in "All Programs"

This is a discussion on Enumerating items in "All Programs" within the Windows Programming forums, part of the Platform Specific Boards category; Greeting all:
Does anyone know how to enumerate items in all programs in the start menu for the logged-on user? ...

Enumerating items in "All Programs"

Greeting all:

Does anyone know how to enumerate items in all programs in the start menu for the logged-on user? The only way I could think of was to call SHGetSpecialFolderLocation with CSIDL_COMMON_PROGRAMS and CSIDL_PROGRAMS and then combine them. Is there any better way to do it?