IltmmPlay::get_DVDControl Example for C

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; 
}