Export Default Configuration Example for C++

HRESULT ExportDefaultConfig(IltmsServer* server, LPCTSTR path) 
{ 
   HRESULT hr; 
 
   // reset configuration to default values 
   hr = server->ResetConfig(); 
   if(FAILED(hr)) 
      goto error; 
 
   // save the changed configuration 
   hr = server->ExportConfigFile(CComBSTR(path)); 
   if(FAILED(hr)) 
      goto error; 
 
error: 
   return hr; 
} 
Help Version 20.0.2020.4.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Media Streaming C API Help