• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 276
  • Last Modified:

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

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
MichaelPongan
Asked:
MichaelPongan
  • 2
  • 2
1 Solution
 
eozz_2000Commented:
Are you trying to open de registryKey as writtable?
0
 
MichaelPonganAuthor Commented:
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
 
eozz_2000Commented:
And... ┬┐if you try to put instead of Me.pvtValueKey the exact name of the value?
0
 
MichaelPonganAuthor Commented:
It worked. I just open the registrykey as readonly. Thanks!
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now