You can not give your running executable system
access rights. You can only start a new instance of your executeble with those rights. And you could do so inside your project file if you want to.
But if you need to run in system context, why don't you just write a service application?