title: how to secure dll functions from being used outside of my application?
body: <p>I want to restrict other application from using dll functions that I have written.</p>
  
  <p>Eg.
  If i hav database.dll containg two functions.</p>
  
  <pre><code>public void InsertInToDatabse();
  public void ClearDatabase();
  </code></pre>
  
  <p>Now If my application has called InsertInToDatabse() and is doing some other work,till this time if some other application calls ClearDatabase() by referencing database.dll , The databse would be cler out.So how can I restrict calls to these functions form third party application ? </p>