-
April 12th, 2010, 03:51 PM
#1
temporarily gaining admin rights
Hi
Codeing Gurus
Is there any sort of code that can temporarily gain admin rights in a exe
-
April 12th, 2010, 03:59 PM
#2
Re: temporarily gaining admin rights
Originally Posted by gaar321
Is there any sort of code that can temporarily gain admin rights in a exe
I hope not, because that would kill the idea behind admin-mode. Right-click the application and use 'run as...' and run it under admin privileges.
-
April 12th, 2010, 04:15 PM
#3
Re: temporarily gaining admin rights
-
April 12th, 2010, 05:33 PM
#4
Re: temporarily gaining admin rights
Presumably if there's a way to do it, a prompt of some kind would be required to get an admin username/password.
-
April 12th, 2010, 05:45 PM
#5
Re: temporarily gaining admin rights
Originally Posted by gaar321
Is there any sort of code that can temporarily gain admin rights in a exe
What for?
-
April 12th, 2010, 05:58 PM
#6
Re: temporarily gaining admin rights
Originally Posted by Andreas Masur
What for?
On that note, it seems to be always the ones with little to no posting history that ask these questions.
Regards,
Paul McKenzie
-
April 13th, 2010, 03:13 AM
#7
Re: temporarily gaining admin rights
the answer is no.
an exe cannot elevate itself to admin priviliges
it can only launch a new exe and request admin priviliges (which will cause the UAC prompt).
OR
it can launch a COM component and create this component with elevated priviliges (which will also cause the UAC prompt). The code in the COM component can then use admin stuff, the code in the application using the COM component still can't do admin stuff itself. it can only do so through the interfaces available in the com component.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|