Verify if is file is opened in application using Aspose.Slides (C++)

Hi,
If I try to call Save on presentation, that is currently opened in PowerPoint, it throws exception. How can I check that presentation is opened/blocked for saving without calling Save? Something like IsSavePossible(pres_path)

Current code is very simple

  auto p_pres = System::MakeObject<Aspose::Slides::Presentation>(path_of_opened_presentation);
  p_pres->Save(res_path, Aspose::Slides::Export::SaveFormat::Pptx);

@grevick,

I have observed your comments. I like to inform that you can check if file, where you are going to save, is in use. This is not related to Slides. You can use any approach suitable for you, like trying to open a filestream and check if you will or will not getting IOException.