IltmmConvert::get_PercentCompleteScalar Example for C

   HRESULT  hr; 
   long     lPercent; 
   
   hr = IltmmConvert_get_PercentCompleteScalar (g_convert, &lPercent); 
   if (FAILED(hr)) 
      return hr; 
   lPercent *= 10; 
   hr = IltmmConvert_put_PercentCompleteScalar (g_convert, lPercent); 
   if (FAILED(hr)) 
      return hr;

L_MULTIMEDIATEX_API HRESULT IltmmConvert_get_PercentCompleteScalar_Example (IltmmConvert* pConvert)
{
   HRESULT  hr; 
   long     lPercent; 

   hr = IltmmConvert_get_PercentCompleteScalar (pConvert, &lPercent); 

   if (FAILED(hr)) 
      return hr; 

   lPercent *= 10; 

   hr = IltmmConvert_put_PercentCompleteScalar (pConvert, lPercent); 

   if (FAILED(hr)) 
      return hr;

   return S_OK;
}