MS' docs simply say:
Given a ProgID, CLSIDFromProgID looks up its associated CLSID in the registry.
But where exactly does it look? I have a weird issue where a wrong CLSID is being returned and I want to follow where this function is looking to help narrow down where the problem is.