HRESULT SetRootFolder(LPCTSTR folder)
{
HRESULT hr;
CComPtr<IltmsPathResolver> resolver;
// this function will change the root folder for the ltmsMediaFolder, ltmsLogFolder, and ltmsConfigFolder variables
hr = CoCreateInstance(__uuidof(ltmsPathResolver), NULL, CLSCTX_ALL, __uuidof(IltmsPathResolver), (void**) &resolver);
if(FAILED(hr))
return hr;
return resolver->Add(CComBSTR(L"ltmsRootFolder"), CComBSTR(folder));
}
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