Link to home
Start Free TrialLog in
Avatar of kagami01
kagami01

asked on

How to run my application with admin priviligies in windows vista?

Hello EE,
 my application in windows vista cannot running properly.It worked good on xp pro
but on vista due to the admin priviligies i am having some problems.How can i fix that directly by  code in c++?

ps
i am using Dev c++
Avatar of apcsolutionsuk
apcsolutionsuk
Flag of United Kingdom of Great Britain and Northern Ireland image

You can use this Microsoft Supplied Windows Vista Powertoy to do this hasslefree:


http://technet.microsoft.com/en-us/magazine/cc162321.aspx
Avatar of kagami01
kagami01

ASKER

can i do that direclty by c++ code?
i am usign dev-c++ as compiler
ASKER CERTIFIED SOLUTION
Avatar of JanSchotsmans
JanSchotsmans
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I'm pretty sure you can't make the program coded to make itself run with administrative privileges. I did find however if the issue is the program wanting to modify files in its directory, make it install itself somewhere other than "Program Files", as Vista seems to think that folder is sacred and the programs in it shouldn't be changing things.
Kursho are u sure about that?
anyway vista is getting annoying for my application
Yes, at least in the case of programs such as HydraIRC that need to modify files in their installation folder, if you install them anywhere other than the "Program Files" folder it will let them do what they want.