Here's the situation. I have to iterate through an array of registry values in a Microsoft.Win32.RegistryKey and handle each value differently based on it's type. Here's the values and their data types:
Binary - byte[]
DWORD - int/uint
Expandable string - string
Multi-line string - string[]
String - string
I have everything working except for the expandable strings. Since they share a type with normal string values, a problem arises. I can't tell which type a value is supposed to be when I'm looping through an array of values. Here's my code:
As you can see, when I test for a string value, I'm trying to check for "%" because that would signify an expandable string. The problem is that expandable strings are meant to be unexpanded automa%ProgramFiles%m the registry. So when I try anC:\Program Filesot;%ProgramFiles%" for example, I get "C:\Program:huh:s" instead... How can I tell which strings are which types of values? :huh:
Poor UI design is unacceptable from a company the size of MS.
The UI team needs an overhaul.
To whom else might be be having this same issue, I found the following tool that DOES work for this missing setting:
https://www.wintools.info/index.php/advanced-system-font-changer#google_vignette
It's MY computer, and I want to be able to make it look the way I WANT! I OWN IT! NOT MS!
That is Arc System Works who are known for having fantastic visuals. It looks better than any Capcom fighting game involving Marvel, that's for sure. I can't be certain but I believe it might be the first 4v4 standard fighting game? If you mean you are tired of seeing Marvel characters you might have a point.
Question
John Veteran
Here's the situation. I have to iterate through an array of registry values in a Microsoft.Win32.RegistryKey and handle each value differently based on it's type. Here's the values and their data types:
Binary - byte[]
DWORD - int/uint
Expandable string - string
Multi-line string - string[]
String - string
I have everything working except for the expandable strings. Since they share a type with normal string values, a problem arises. I can't tell which type a value is supposed to be when I'm looping through an array of values. Here's my code:
As you can see, when I test for a string value, I'm trying to check for "%" because that would signify an expandable string. The problem is that expandable strings are meant to be unexpanded automa%ProgramFiles%m the registry. So when I try anC:\Program Filesot;%ProgramFiles%" for example, I get "C:\Program:huh:s" instead... How can I tell which strings are which types of values? :huh:
Link to comment
https://www.neowin.net/forum/topic/239805-c-reading-registry-values/Share on other sites
1 answer to this question
Recommended Posts