Solved

Users policies and OS registry

Posted on 2002-03-04
5
162 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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 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…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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…

765 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