Click here to Skip to main content
15,903,362 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
I need to give system permission to current process without restarting it. How can I do this?
Posted
Comments
ZurdoDev 12-Nov-15 14:30pm    
Permission for what?
Dave Kreskowiak 12-Nov-15 14:35pm    
There's no such thing as "system permission", so you're going to have to define what you mean by that and what you want this code to do.
Sergey Alexandrovich Kryukov 12-Nov-15 14:37pm    
I think that the question in not special, but principal one; and I think that the answer is "no". Please see my other comment below.
—SA
Sergey Alexandrovich Kryukov 12-Nov-15 14:36pm    
In fact, this is a good question. The detail of permission Ryan and Dave wanted to know can be important, but the problem has a principle character.

To best of my knowledge, you cannot. A well-known technique is starting another instance of the same process with elevated permissions, and collaborate between those instances. If the elevation during runtime was possible, people would not use this tricky technique with second instance.

—SA
frostazaza 12-Nov-15 14:44pm    
spasibo=)

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900