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 20.0.2019.9.19
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2019 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Media Streaming C API Help