title: Detect if an OCX class is registered in Windows
body: <p>i need to know how can detect if an  OCX class (ClassID) is registred in Windows </p>
  
  <p>something like  </p>
  
  <pre><code>function IsClassRegistered(ClassID:string):boolean;
  begin
  //the magic goes here
  end;
  
  begin
    if IsClassRegistered('{26313B07-4199-450B-8342-305BCB7C217F}') then
    // do the work
  end;
  </code></pre>