title: Check if Delphi OLE connection still exists
body: <p>When I open an Office application e.g. Word, it appears as an application in the Task Manager. If I kill it from there, calling any specific Word function later causes <code>EOleSysError</code> exception. That's normal and works fine. The question is, can Word or any other OLE application existence be checked in a common way without knowing Word it or not?</p>
  
  <pre><code>var App, Obj: Variant
  begin
    App := CreateOleObject('Word.Application');
    Sleep(100);//placing breakpoint here
  // killing Word
  // checking if App connection still exists
    IUnknown(App).QueryInterface(IUnknown, Obj);//no exception, doesn't work
    App.Documents.Open('c:\1.docx');//Exception is raised, works but Word specific
  end;
  </code></pre>