View Full Version : Admin Rights in Application
daisycutter
06-21-04, 11:09 PM
I am making an app that need admin rights so that it can write to registry and do stuff that only admin can do, does anyone know how I can make this app have admin rights no matter what tyoe of user except maybe guest is using it ?
Masterhard
06-25-04, 01:33 AM
I am making an app that need admin rights so that it can write to registry and do stuff that only admin can do, does anyone know how I can make this app have admin rights no matter what tyoe of user except maybe guest is using it ?
Each user has its' user registry (HKEY_CURRENT_USER). Do you realy need to write to system registry(HKEY_LOCAL_MACHINE)? If so, probably you should write a service, not just an application. You can run it under LocalSystem account and allow it to interact with desktop. Implement systray icon so users will be able to invoke your application using an icon near system clock.
P.S. Maybe you should store information in a file accessible by all users?
Here's a dummy question! What excactly a registry key do? what is the difference between an application that doesn 't have registry entries?
Bear_21
07-20-04, 04:15 AM
Here's a dummy question! What excactly a registry key do? what is the difference between an application that doesn 't have registry entries?
\/\/0O7 thats not a bad question but i'm not smart but dont it just mean you can put on a tag that its on your computer, and can be used to store cd keys?
StickMan
07-26-04, 05:16 PM
Here's a dummy question! What excactly a registry key do? what is the difference between an application that doesn 't have registry entries?
Registry keys are just used to store info for your computer and software. Almost all your settings are stored in them even your passwords, though they are encrypted/hashed. :D
vBulletin® v3.6.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.