Solved

Users policies and OS registry

Posted on 2002-03-04
5
158 Views
Last Modified: 2012-05-04
I want to make my application able to write to the Windows registry, even if the user who is logged on the domain has no right to permorm such operation on his own machine.

The app calls API function like RegCreateKeyEx and RegSetValueExString to save to the registry.

Thanks,

freg.
0
Comment
Question by:freg
5 Comments
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 6975166
mmmm...let's see.
0
 
LVL 1

Author Comment

by:freg
ID: 6980454
Richie,

I think i've found that since i wrote to the registry in the HKEY_LOCAL_MACHINE section, the simple user can not save the app settings.  Probably i must write the settings in the HKEY_CURRENT_USER.

But what if i want all users using those settings, even they're simple users ?
0
 
LVL 16

Accepted Solution

by:
Richie_Simonetti earned 100 total points
ID: 6996494
Maybe you could do something with winbatch:
http://www.windowware.com/winware/whitepapers/run_as_a_user.html
0
 
LVL 12

Expert Comment

by:guidway
ID: 7306321
This question appears to have been abandoned. A Moderator will be asked to
close this question after seven days, with the following recommended
disposition:

Points to Richie_Simonetti

If you have any comment or objection to the recommendation, please leave it here.

guidway
EE Cleanup Volunteer
0
 
LVL 5

Expert Comment

by:Netminder
ID: 7331673
Per recommendation, force-accepted.

Netminder
CS Moderator
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
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…
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…

744 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

11 Experts available now in Live!

Get 1:1 Help Now