Clsid from prog

I noticed that there is no test for CLSIDFromProgID so I am providing one here.
It checks the CLSID for "jpegfile" which should be working on all revisions of Windows, as it is part of the Windows Desktop.