ILTDVDBurner::get_AutoEject Example for C++

void OnAutoEject(ILTDVDBurner* pBurner)
{
   VARIANT_BOOL autoeject;
   pBurner->get_AutoEject(&autoeject);
   if (autoeject != VARIANT_TRUE)
      pBurner->put_AutoEject(VARIANT_TRUE);
}