Solved

registry problem

Posted on 2002-05-10
7
136 Views
Last Modified: 2010-05-02
Hi All;

Running XP with administrative rights and two limited users on a stand alone computer. I have a small program that I run for the whole system (administrator and all users). Getting the program to run is no problem as I list it in the registry under "HKEY_LOCAL_MACHINE using the run key" so that it runs each time the computer is booted or a user logs on.

My problem is that the program has an "input box" that requires everyone to type in some information. This information is stored in the registry as such "HKEY_LOCAL_MACHINE software\myinfo".

When I run the program as an administrator I don't have a problem with the program running or my entering in the information and having the registry make sure it is correct. Once another user is logged on with a limited account, the program runs but doesn't check for the information in the registry ?

My Question is: Where should I place information in the registry for limited accounts so that they too must enter information when my program runs and then have the registry confirm this information (query) ?

Seems to me that it should be possible since my program will run each time the computer boots or someone logs on whether a limited account or not.

Thanks in advance

stnic
0
Comment
Question by:stnic
7 Comments
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 7002765
I don't have XP but in NT, you could grant access to registry values stored in HKEY_LOCAL_MACHINE to specific key to specific users.
Take a look at Article ID: Q153183 from MSDN for a clue.
0
 
LVL 28

Expert Comment

by:vinnyd79
ID: 7002766
Put it in HKEY_CURRENT_USER
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 7002768
0
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
LVL 16

Accepted Solution

by:
Richie_Simonetti earned 200 total points
ID: 7002770
0
 
LVL 22

Expert Comment

by:mnasman
ID: 7002928
Hello

  To access the registry key "HKEY_LOCAL_MACHINE" you have to be Administrator or have adiminstrator privilege, this is cuz the security of win nt/2000/XP

if you want the users to access the registry use the "HKEY_CURRENT_USER" instead of "HKEY_LOCAL_MACHINE"

cuz all users could read and read to the "HKEY_CURRENT_USER" key

Best regards
Mohammed Nasman
0
 

Author Comment

by:stnic
ID: 7269083
Hey Thanks for the links, just what I needed! Sorry it took so long to get back, they were having problems on this site and I couldn't accept the comment!

stnic
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 7270221
Thanks for "A" grade.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now