Connecting Tech Pros Worldwide Forums | Help | Site Map

C# attach to my secondary app as debugger?

Newbie
 
Join Date: Mar 2009
Posts: 14
#1: Jun 27 '09
Hi guys, im having a bit of a problem!

Im trying to make my primary application debug my secondary, the reason for is to stop anyone attaching a debugger to my second app, if they do, i want it to make my primary application crash (wikll be a security feature).

I dont want the debugger to do anything other then hook so nothing else can, my question is can this be done in C# and anyone got some example code? i cant find anything on doing it in C# because i only found isDebuggerAttached();.

Reply