Finding An Application Runtime By Extension

So a recent item that I’ve been tasked with is programmatically finding the application that is required to open/load a file of a given file extension.  One would think that this would be a straightforward task and quite easy to...