C# in registry, the key is exist, but the value is null

I got the data from the registry, the key is exist ,but the value I got is null, I don’t know why happened? I tried to changes the permissions, but it’s still null.
But I copied the code in a new project, it’s could get the value.
I debugged the project attached to process, the pop windows showed that It needed the Admin permission.

Source: windows

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.