end my program if other is running

Hello guys, can someone here help me or tell me how do i make my c# injector exit when windebugger is running?
Topic archived. No new replies allowed.