Re: Registry Access Problem

From: Tim (Tim_at_NoSpam)
Date: 06/20/04


Date: Sun, 20 Jun 2004 12:32:21 +1200

As per Dave's comments.

If you have system wide settings you need to establish that are constant for
the life of the system, then do so during software installation.
If you have settings that need to be common to all but able to be set by all
then reconsider your use of the registry or during setup create the
apporpriate key in the appropriate place and set permissions apppropriately.

Why all this? It is highly undesireable (IE really bad design) for your
application to require Admin priviledges - this restricts your users to
administrators and so opens the door wider to virus damage. An end user
application should always be able to be run by an end user account, not an
administrator. Expect some time soon Windows to refuse to run your
application regardless if it is not an Administration Specific program IE
one that justifies requiring Admin access.

- Tim

"atul" <a_fund@yahoo.com> wrote in message
news:cc80ab6.0406190418.698a8bd3@posting.google.com...
> Hello
> i am doing one program which stores and reterive values from the
> registry. It works fine when i logged in as a administrator for
> windows 2000 OS. But it's doesn't work when user doesn't have
> administrative rights.
> my question is how to get administrative rights through
> programmatically? how to access registry coz registry access is not
> available it's a read only.
>
> Please help me
>
>
>
>
>
> Regards
> Atul



Relevant Pages

  • Re: Non admin users cant do things they need to do
    ... You mean they are along with the registry entires? ... i added the keys below to the registry (as administrator) logged off, ... can set the time then they can fake out system event logs by changing ...
    (microsoft.public.windowsxp.embedded)
  • Re: How do I find out if Im the system administrator for my perso
    ... registered as the system administrator for this machine. ... password when I'm installing new software and under some other ... I was never asked to establish an administrator's account or password ... The reason for my question is that I'm about to have to edit my registry ...
    (microsoft.public.windowsxp.security_admin)
  • Re: Non admin users cant do things they need to do
    ... only the administrator can. ... Could it be tht we're just missing a load of registry settings for our ... can set the time then they can fake out system event logs by changing ...
    (microsoft.public.windowsxp.embedded)
  • Re: Non admin users cant do things they need to do
    ... i added the keys below to the registry (as administrator) logged off, ... can set the time then they can fake out system event logs by changing ...
    (microsoft.public.windowsxp.embedded)
  • Re: Access denied. Program not recognizing administrator privileges.
    ... Would it be possible to send you a log of the registry ... > Please reply only to the newsgroup so all may benefit. ... > Unsolicited e-mail is not answered. ... >> user profile with administrator privileges apart from "Administrator" ...
    (microsoft.public.windowsxp.security_admin)