IltmmPlay::get_DVDControl Example for C

   
   HRESULT hr;
   IltmmDVDControl* pDVD; 

   hr = IltmmPlay_get_DVDControl (g_player, &pDVD); 
   if (FAILED(hr)) 
      return hr; 
   
   IltmmDVDControl_Release(pDVD); 
   pDVD = NULL;

L_MULTIMEDIATEX_API HRESULT IltmmPlay_get_DVDControl_Example (IltmmPlay* pPlay)
{
   HRESULT hr;
   IltmmDVDControl* pDVD; 

   hr = IltmmPlay_get_DVDControl (pPlay, &pDVD); 

   if (FAILED(hr)) 
      return hr; 

   IltmmDVDControl_Release(pDVD); 

   pDVD = NULL;

   return S_OK; 
}