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;
}
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET