For complete code, refer to the CNVWM demo.
void LoadProfileFromData(IltmmWMProfile *pProfile, IltmmWMProfileManager *pManager, BSTR bstrData) { pProfile = NULL; pManager->LoadProfileByData(bstrData, &pProfile); }