ILMDVRSink::put_FolderName Example for C++

#define MAKE_MEDIA_PATH(pFileName) (TEXT("C:\\LEADTOOLS 17.5\\Media\\")TEXT(pFileName))


void OnSetFolderName(ILMDVRSink* pSink)
{
   long index = 0;
   BSTR path = ::SysAllocString(MAKE_MEDIA_PATH(""));
   pSink->put_FolderName(index, path);
   ::SysFreeString(path);
}