Available in the LEADTOOLS Imaging toolkit.
FreeDlg Example for C++ 5.0 and later
m_pRasterDlgKrn->FreeDlg(); CoUninitialize();