IltmmPlay::SaveSettingsToStream Example for C

void IltmmPlay_SaveSettingsToStream_Example (IltmmPlay* pPlay) 
{ 
   IltmmMemory* pMem; 
   IStream *pStream = NULL; 
   LARGE_INTEGER li; 
   LARGE_INTEGER liOffset; 
   li.QuadPart = 0; 
   CoCreateInstance(&CLSID_ltmmMemory, NULL, CLSCTX_INPROC_SERVER, &IID_IltmmMemory, (void**)&pMem); 
   IltmmMemory_QueryInterface(pMem, &IID_IStream, (void**)&pStream); 
   IStream_Seek(pStream, li, STREAM_SEEK_CUR, &liOffset); 
   IltmmPlay_SaveSettingsToStream(pPlay, (IUnknown*)pMem, ltmmPlay_Settings_All); 
   IStream_Seek(pStream, liOffset, STREAM_SEEK_SET, NULL); 
   IStream_Release(pStream); 
   IltmmPlay_LoadSettingsFromStream(pPlay, (IUnknown*)pMem, ltmmPlay_Settings_All); 
   IltmmMemory_Release(pMem); 
} 

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
LEADTOOLS Multimedia C API Help