Reset MIME Types Example for C++

HRESULT ResetMIMETypes(IltmsServer* server) 
{ 
   HRESULT hr; 
   CComPtr<IltmsMIMETypes> types; 
 
   // retrieve a copy of the MIME Types 
   hr = server->GetMIMETypes(&types); 
   if(FAILED(hr)) 
      goto error; 
 
   // reset 
   hr = types->Reset(); 
   if(FAILED(hr)) 
      goto error; 
 
   // copy the MIME Types to the server 
   hr = server->SetMIMETypes(types); 
   if(FAILED(hr)) 
      goto error; 
 
error: 
   return hr; 
} 
Help Version 21.0.2021.7.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Media Streaming C API Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.