When you right-click on an application in the Taskbar or click the ">" button in the Start menu, Windows displays a Jump List.
As described in the linked article, if your application is registered to handle certain file types then the Shell will automatically build the list of recently used files as users open them from Explorer. You don't need to do anything.
If you need to further customize the list, the article explains how.