[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

registry problem

Posted on 2002-05-10
7
Medium Priority
?
144 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 16

Accepted Solution

by:
Richie_Simonetti earned 800 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: 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.

Question has a verified solution.

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

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

649 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