Elevation of process
-
Is there a way to elevate a process's privileges dynamically? I don't want the process to be administrator all the time. It is only during a critical moment I want to elevate the privileges (I'm starting and stopping a service). I've seen solutions elevating a COM object, but that seems a bit far fetched! Surely there ought to be some API call that elevates the currently running process? Hints, suggestions are welcomed in any programming language.
-
Is there a way to elevate a process's privileges dynamically? I don't want the process to be administrator all the time. It is only during a critical moment I want to elevate the privileges (I'm starting and stopping a service). I've seen solutions elevating a COM object, but that seems a bit far fetched! Surely there ought to be some API call that elevates the currently running process? Hints, suggestions are welcomed in any programming language.
This article may be of help. Regards, --Perspx
"Nowadays, security guys break the Mac every single day. Every single day, they come out with a total exploit, your machine can be taken over totally. I dare anybody to do that once a month on the Windows machine." - Bill Gates
BSoD during a Win98 presentation -
This article may be of help. Regards, --Perspx
"Nowadays, security guys break the Mac every single day. Every single day, they come out with a total exploit, your machine can be taken over totally. I dare anybody to do that once a month on the Windows machine." - Bill Gates
BSoD during a Win98 presentationNot quite what I had in mind, but it does give some valuable research. I'll look into it a bit better at work tomorrow morning. Thanks for the link!
-
Not quite what I had in mind, but it does give some valuable research. I'll look into it a bit better at work tomorrow morning. Thanks for the link!
Yep, I tried that before, it works, but obviously it launches the UAC dialog, so the user will still have to confirm your good intentions... :)
Luc Pattyn [Forum Guidelines] [My Articles]
Voting for dummies? No thanks. X|
-
Is there a way to elevate a process's privileges dynamically? I don't want the process to be administrator all the time. It is only during a critical moment I want to elevate the privileges (I'm starting and stopping a service). I've seen solutions elevating a COM object, but that seems a bit far fetched! Surely there ought to be some API call that elevates the currently running process? Hints, suggestions are welcomed in any programming language.
Jörgen Sigvardsson wrote:
Is there a way to elevate a process's privileges dynamically?
No, a process's integrity level can only be set when it is launched. The common way to temporarily elevate uses a COM object because it gets instantiated by the OS in a separate elevated process.
--Mike-- Visual C++ MVP :cool: LINKS~! CP SearchBar v3.0 | C++ Forum FAQ "That's what's great about doing user interface work. No matter what you do, people will say that what you did was idiotic." -- Raymond Chen