Solved

How to read registry values using a limited account in XP?

Posted on 2004-09-28
4
262 Views
Last Modified: 2010-05-18
I have an application that reads some registry values. The app works fine in an Administrator account but when tried in an ordinary user account (limited), my app failed cause it can't read the registry anymore. It just gave me nothing, no errors received.

Btw, I am using the Registry classes of .NET. I have tried the permission but it didnt work.

Can someone give me a working sample? Thanks!
0
Comment
Question by:MichaelPongan
  • 2
  • 2
4 Comments
 
LVL 4

Accepted Solution

by:
eozz_2000 earned 125 total points
ID: 12177014
Are you trying to open de registryKey as writtable?
0
 

Author Comment

by:MichaelPongan
ID: 12177079
Yes. Does it matter? Here's the snippet.
Dim reg As RegistryKey = Me.GetRegKey(Me.pvtClassKey)
reg = reg.OpenSubKey(Me.pvtSectionKey, True)
ret = reg.GetValue(Me.pvtValueKey, "")
0
 
LVL 4

Expert Comment

by:eozz_2000
ID: 12180089
And... ¿if you try to put instead of Me.pvtValueKey the exact name of the value?
0
 

Author Comment

by:MichaelPongan
ID: 12186287
It worked. I just open the registrykey as readonly. Thanks!
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

776 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