I’m trying to write some code to read a value from the registry using RegQueryValueEx. The value I’m trying to get is type REG_DWORD which is a 32-bit number. It works fine for regular text values (REG_SZ), but I want to get the numeric value that seems to be coming across as an ASCII string with the hex/binary value that I’m trying to capture. The code I found to do this uses
Dim strValue as String*127
and even though it sort of works, I only partially understand what it means and I have only figured out how to translate one “character” with the returned data. I can’t search for an answer because the asterisk doesn’t work in any of the search engines I’ve used. Can anyone either explain this or at least give me a link where I can read about it? Thanks in advance!