Available in the LEADTOOLS Imaging toolkit.
PreferredLoadFormat Example for C++ 4.0 and later
m_LEAD1.SetPreferredLoadFormat(FILE_CMP);