Solved

registry problem

Posted on 2002-05-10
7
141 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 
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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
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…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

688 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