Check for Valid File Association

I want to check to see if I can play mpeg movies on a sytem.  So, early on in the application I want to check if they have a program associated with the mpeg extension.  Is there an easy way to do this - I was going to try GetClassFile() and see if I get a valid CLSID, but this won't work in 16-bit windows and I wanted to maintain that capability...
gpaigeAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
jkrConnect With a Mentor Commented:
Simply use the 'FindExecutable()' API. If it does not return an error (i.e. returns > 32), an appropriate executable is installed... (also available for Win16)
0
All Courses

From novice to tech pro — start learning today.