IltmmWMProfileManager::SaveProfile Example for C

For complete code, refer to the CNVWM demo.

void DisplayContent(int i, IltmmWMProfileManager *pProfileManager) 
{
   USES_CONVERSION; 

   IltmmWMProfile *pProfile = NULL; 
   BSTR bstrString; 

   HRESULT hr =IltmmWMProfileManager_LoadSystemProfile (pProfileManager, i, &pProfile); 

   IltmmWMProfileManager_SaveProfile(pProfileManager, pProfile, &bstrString); 

   MessageBox(NULL, OLE2A(bstrString), "Profile Content", MB_OK);

   IltmmWMProfile_Release(pProfile); 
   SysFreeString(bstrString); 
}