This is my first release on these forums.
This program is intended to keep running the application as an Administrator until Yes is pressed.
There are still a few problems, if the user is a standard user and does not have access to the administrator password then the dialog will not go away.
Anyways, credits to a class I found on the internet when researching, "VistaTools.cs". I expanded on this class to help me in this program.
Credits: http://www.itwriting.com/blog/198-c-code...vista.html
Source Download
Mirror 1 - http://www.speedyshare.com/RcvSH/ForceAdmin.rar
Mirror 2 - https://www.sendspace.com/file/ut8bpk
Mirror 3 - http://wikisend.com/download/187214/ForceAdmin.rar
wooow is awesome ,i will try it as soon
Thanks you mate
So which versions of windows does this work for?
(Oct 13, 2014 09:56 PM)HelloMyNameIsWalter Wrote: So which versions of windows does this work for?
In the comments of the screenshots it says Vista, 7, 8 and XP.
Oct 14, 2014 08:05 PM
(This post was last modified: Oct 14, 2014 08:05 PM by Zettabit.)
So what is the point of the UACTools class when this is literally all you have to do?:
http://prntscr.com/4wb0eo
(Oct 14, 2014 08:05 PM)Zettabit Wrote: So what is the point of the UACTools class when this is literally all you have to do?:
http://prntscr.com/4wb0eo
Because there is no need to do this if we are elevated...
(Oct 14, 2014 07:16 PM)gurgle528 Wrote: from what I can tell in the code it only checks if the user is an XP admin without trying to elevate but I'm just looking in the screenshot
it seems to work with XP in that if you're not an admin it will perform functions for standard user
I do not have access to an XP computer but from what I remember as long as you are an admin you can perform the function. There is no UAC in xp so I dont have to check, with xp I can just check if they are an admin.
(Oct 14, 2014 08:57 PM)Malware Wrote: Because there is no need to do this if we are elevated...
I do not have access to an XP computer but from what I remember as long as you are an admin you can perform the function. There is no UAC in xp so I dont have to check, with xp I can just check if they are an admin.
Do you even understand what I posted?
(Oct 15, 2014 10:09 PM)Zettabit Wrote: Do you even understand what I posted?
UAC tools checks for elevation.. And other helpful functions
(Oct 15, 2014 11:29 PM)Malware Wrote: UAC tools checks for elevation.. And other helpful functions
That's exactly what my example is... The UACTools class is completely unnecessary.
(Oct 16, 2014 01:11 PM)Zettabit Wrote: That's exactly what my example is... The UACTools class is completely unnecessary.
Because that function will return false even if my UAC is off. I just tested it.
(Oct 16, 2014 01:28 PM)Malware Wrote: Because that function will return false even if my UAC is off. I just tested it.
Clearly you're doing something wrong, because it works perfectly fine on my Windows 7.
Oct 16, 2014 07:01 PM
(This post was last modified: Oct 16, 2014 07:02 PM by Zettabit.)
(Oct 16, 2014 04:08 PM)Malware Wrote: ![[Image: c232201bb8f0e34328d11deb556b06e1.png]](https://i.gyazo.com/c232201bb8f0e34328d11deb556b06e1.png)
But it doesn't... I can show you on Teamviewer right now if you're this serious.
EDIT: Omg you're so stupid. It doesn't IMMEDIATELY start with admin rights, that's why you put in the IsAdmin() check... It uses the Process.Start(), and it autoelevates without a prompt (if UAC is off).
(Oct 16, 2014 07:01 PM)Zettabit Wrote: But it doesn't... I can show you on Teamviewer right now if you're this serious.
EDIT: Omg you're so stupid. It doesn't IMMEDIATELY start with admin rights, that's why you put in the IsAdmin() check... It uses the Process.Start(), and it autoelevates without a prompt (if UAC is off).
No need to be rude.
So this code seems to work well, however I'm not sure what will happen on XP.
Also it needed a trycatch block, but other than that I think it is probably better than what I wrote. However, if the user cannot provide administrative rights then their PC will not be usable till that password is entered.
Thanks
|