ILTDVDBurner::get_AutoEject Example for C

void ILTDVDBurner_get_AutoEject_Example(ILTDVDBurner* pBurner)
{
   VARIANT_BOOL autoeject;
   ILTDVDBurner_get_AutoEject (pBurner, &autoeject);

   if (autoeject != VARIANT_TRUE)
      ILTDVDBurner_put_AutoEject (pBurner, VARIANT_TRUE);
}