How do I restrict the usage of a C# application
<p>I want to  restrict the use of any exe file to specific number of iteration, lets say 10. After that limit is reached user shall not be able to run the exe file, or on running the exe file for the 11th time, he / she shall be greeted with a message "Exceeeded Trial Run" .</p>

<p>This is very much possible in C, like this - <a href="http://www.gidforums.com/t-22362.html" rel="nofollow">http://www.gidforums.com/t-22362.html</a> </p>

<p>An example to accessing the PE header is here - <a href="http://code.cheesydesign.com/?p=572" rel="nofollow">http://code.cheesydesign.com/?p=572</a> , but it checks the timeststamp, whereas I want the number of occurrences the application has been launched .</p>

<p>I dont want to change the registry.</p>

<p>All suggestions are welcome.</p>
