Solved

registry problem

Posted on 2002-05-10
7
139 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
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
LVL 16

Accepted Solution

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

Expert Comment

by:Mohammed Nasman
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
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…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

840 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