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 = pProfileManager->LoadSystemProfile (i, &pProfile); 

   pProfileManager->SaveProfile (pProfile, &bstrString); 

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

   pProfile->Release();
   SysFreeString(bstrString); 
}