Reset Network Properties Example for C++

HRESULT ResetNetworkProperties(IltmsServer* server) 
{ 
   HRESULT hr; 
   CComPtr<IltmsNetworkProperties> props; 
 
   // retrieve a copy of the current network properties 
   hr = server->GetNetworkProperties(&props); 
   if(FAILED(hr)) 
      goto error; 
 
   // reset to the default properties 
   hr = props->Reset(); 
   if(FAILED(hr)) 
      goto error; 
 
   // copy the properties to the server 
   hr = server->SetNetworkProperties(props); 
   if(FAILED(hr)) 
      goto error; 
 
error: 
   return hr; 
} 
Help Version 22.0.2022.12.7
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

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