?
Solved

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

Posted on 2004-09-28
4
Medium Priority
?
266 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
[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
  • 2
  • 2
4 Comments
 
LVL 4

Accepted Solution

by:
eozz_2000 earned 375 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
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…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

719 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